% nbpreview --theme monokai notebook.ipynb
     ╭────────────────────────────────────────────────────────────────────────╮
[ ]:from typing import Iterator                                            │
     │                                                                        │
     │                                                                        │
     │ class Math:                                                            │
     │     """An example class."""                                            │
     │                                                                        │
     │     @staticmethod                                                      │
     │     def fib(n: int) -> Iterator[int]:                                  │
     │         """Fibonacci series up to n."""                                │
     │         a, b = 0, 1  # Manually set first two terms                    │
     │         while a < n:                                                   │
     │             yield a                                                    │
     │             a, b = b, a + b                                            │
     │                                                                        │
     │                                                                        │
     │ result = sum(Math.fib(42))                                             │
     │ print(f"The answer is {result}")                                       │
     ╰────────────────────────────────────────────────────────────────────────╯