Jupyter Notebook
To get started, you'll need to install some packages
pip install notebook ipywidgets
By default, when you launch a Jupyter notebook, it will be hosted at 127.0.0.1
on port 8888
-
Launching a Jupyter notebook without opening a browser window:
jupyter notebook --no-browser
Passwords
-
Changing a notebook's password the proper way
-
First, enter a Python shell
python
-
Run the
passwd()
function in the notebook libraryfrom notebook.auth import passwd passwd # Enter password: # Verify password: # => 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
-
Edit your
jupyter_notebook_config.py
file# The password should be of the form 'type:salt:hash' c.NotebookApp.password = 'sha1:0827b2390e3d:b54ee3e38895aaccc182705ad174bfb3c6e86a10'
-
-
Changing a notebook's password the lazy way
- Edit your
jupyter_notebook_config.py
file
```py from jupyter.auth import passwd c.NotebookApp.password = passwd('lol_nobody_will_see_this') ```
- Edit your
Plotly
-
Installing plotly
pip install plotly # lol go figure
-
Render a bar graph figure
import plotly.graph_objects.Figure figure = Figure(data=go.Bar(y=[2, 3, 1])) figure.show()