Back to Jupyterlab

Markdown Cell

examples/console/test.ipynb

4.6.0a5702 B
Original Source
python
import sys

print('hello world', flush=True)
for i in range(3):
    print(i, flush=True)
print('output to stderr', file=sys.stderr, flush=True)
print('some more stdout text', flush=True)

Markdown Cell

$ e^{ \pm i\theta } = \cos \theta \pm i\sin \theta + \beta $

It really is!

python
this is a syntax error
python
from IPython.display import Image

Image('./jupyter.png')
python
from IPython.display import Latex

Latex(
    '''The mass-energy equivalence is described by the famous equation
 
$$E=mc^2$$
 
discovered in 1905 by Albert Einstein. 
In natural units ($c$ = 1), the formula expresses the identity
 
\\begin{equation}
E=m
\\end{equation}'''
)