Jupyter

A notebook for your Python scripts

Saturday, Feb 15, 2020

jupyter

Getting Started

pip install notebook ipywidgets

Changing Password

  1. First, enter a Python shell
python
  1. Run the passwd() function in the notebook library
from notebook.auth import passwd
passwd
# Enter password:
# Verify password:
# => 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
  1. Edit your jupyter_notebook_config.py file
# The password should be of the form 'type:salt:hash'
c.NotebookApp.password = 'sha1:0827b2390e3d:b54ee3e38895aaccc182705ad174bfb3c6e86a10'

Changing Password (the lazy way)

  1. Edit your jupyter_notebook_config.py file
from jupyter.auth import passwd
c.NotebookApp.password = passwd('lol_nobody_will_see_this')

Launching a Notebook

# Launch a jupyter notebook at http://127.0.0.1:8888
jupyter notebook --no-browser &!

Plotly

pip install plotly # go figure
import plotly.graph_objects.Figure
figure = Figure(data=go.Bar(y=[2, 3, 1]))
figure.show()