The following repo contains all the Notebooks and slides for a talk I gave about Jupyter Notebooks over at Lawrence Berkeley National Laboratory.
GOAL: Get a Jupyter Notebook environment up and running on CORI → how to get custom packages installed → how to integrate with tools like TensorBoard right within the Notebook → how to collaborate with your team using git
- Use NBViewer to view your Jupyter notebooks via Git.
- Use Plot.ly for interactive graphs.
- Use Raw Git to host .html files.
jupyter nbconvert --to script Test.ipynb
Make some minor changes to the .py
file:
- Get rid of the magic line
- Add the following line before you import plt
matplotlib.use('agg')
- Instead of
plt.show()
useplt.savefig('output/languages.png')
- Run with $ python3 .py
jupyter nbconvert --to slides Slides.ipynb --reveal-prefix "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0"