A Notebook is made up of a series of executable cells. You can control them from the menues, or see the extensive keyboard short cuts by pressing esc
then h
.
or Latex:
Try making some cells like the ones above. You might want to read about Markdown
As well as text, you can also...
In [ ]:
print('run Python.')
In [ ]:
print('Each cell is separate from the others...')
print('and can be re-executed on the fly')
You can also run terminal commands if you prepend them with the !
symbol.
In [ ]:
!echo 'like this'
Try making some new code cells.
You can include images, videos and charts in your notebook:
In [ ]:
from IPython.display import YouTubeVideo
YouTubeVideo("lqZ-uJIRv2w")
In [ ]:
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 6*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp')
plt.show()
There are a lot of great examples out there: