Python/Jupyter: Difference between revisions
< Python
No edit summary |
|||
Line 7: | Line 7: | ||
* %timeit (time line) | * %timeit (time line) | ||
* %%timeit (time block in lines below, same line = not timed setup) | * %%timeit (time block in lines below, same line = not timed setup) | ||
== Config == | == Config == | ||
Line 53: | Line 50: | ||
* Variable inspector | * Variable inspector | ||
* Toggle all line numbers | * Toggle all line numbers | ||
== Links == | |||
* https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/ |
Revision as of 15:35, 4 January 2018
Installation
- apt install python3-pip
- pip3 install --upgrade pip
- pip3 install jupyter
Magic Functions
- %timeit (time line)
- %%timeit (time block in lines below, same line = not timed setup)
Config
- full width:
- ~/.jupyter/custom/custom.css
.container { width:100% !important; }
- autostart from rc.local
sudo -u pi /usr/local/bin/jupyter-notebook --config=/home/pi/.jupyter/jupyter_notebook_config.py
- insecure access without token/password (/home/pi/.jupyter/jupyter_notebook_config.py)
c.NotebookApp.ip = '*' c.NotebookApp.notebook_dir = '/srv/Python' c.NotebookApp.open_browser = False c.NotebookApp.password = '' c.NotebookApp.token = ''
nbextensions
pip3 install jupyter_contrib_nbextensions jupyter contrib nbextension install --user
- codefolding
- Codefolding in editor
- Collapsible Headings
- Table of contents
- Variable inspector
- Toggle all line numbers