Enhance the usability of Jupyter Notebook
3 major enhancements discussed in this article -
- Notebook extensions
- Integrate webpages, pdf’s and video in the notebook
- Notebook themes
Notebook Extensions
Install notebook extensions -
Step 1 — Run pip install notebook extensions
!pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
Before (Look at the available tabs) —
After (additional tab available ) —
Step 2 — Go to ‘Nbextensions’ tab
Note — ‘Nbextensions’ can also be found in ‘Edit’ options.
Whole list of extensions available to install and optimize the notebook environment.
- Datestamper
- Exercise
- Exercise 2
- Gist-it
- Hide input all
- Initialization Cells
- nbTranslate
- Runtools
- spellchecker
- Code prettify
- Collapsible headings
- Scratchpad
- Split Cells Notebook
- Tree filter
- Codefolding
- Highlighter
- Snippets
- Snippets menu
- Table of Contents
- Variable Inspector
- Autopep8
- Hinterland
- Load Tex macros
- Printview
Extension 1 — Hinterland
Enable code autocompletion menu for every keypress in a code cell, instead of only calling it with tab.
Extension 2 — Snippets menu
This plugin allows you to insert common usable snippets into the code directly.
Select the option from the available plot snippets, for example Histogram.
This will automatically insert the code snippet to create a basic histogram plot.
Extension 3 — Snippets
You can add your reusable code snippets and it will be available in the drop down here-
Extension 4 — Split Cells notebook
Extension 5 — Table of Contents
Extension 5 — Collapsible Headings
Integrate webpages, pdf’s and video in the notebook
Notebook themes
Step 1 — Install jupyterthemes.
Step 2 — List all the available themes
Step 3 — Select a theme and apply
Step 4 — Restart Jupyter Notebook and enjoy the new theme.
Use ‘jt -r’ to return to original theme.
References :-