Edvancer's Knowledge Hub

Make Jupyter notebook fun with extensions

Jupyter notebook

Jupyter notebook is an interactive web-based application used for capturing the whole computation process – developing, documenting, and executing code. Jupyter notebook is a part of the larger Jupyter project that also includes jupyter hub and jupyter lab. Jupyter notebook supports kernels in many languages like python, pyspark, R, Julia among a few. Jupyter notebooks are great for multiple functionalities and can be made more fun and useful by adding Jupyter notebook extensions. These extensions are plug-ins that can be easily added to your Jupyter notebooks. These extensions are mostly written in Javascript and will be loaded locally in your browser. The best way to install them is to use Jupyter NbExtensions Configurator. It will add a Nbextensions tab to let you enable/disable a functionality:  


Installing using pip: pip install jupyter_nbextensions_configurator jupyter nbextensions_configurator enable –user   Installing using Conda: conda install -c conda-forge jupyter_nbextensions_configurator Launch a jupyter notebook, Nbextensions would be added on the home page (see above picture).   A few very useful extensions are: Collapsible Heading: Very useful for large notebooks, click on the heading arrow to collapse and expand the  content underneath.   Code folding: Again for large notebooks, it is a very useful extension to collapse the code and see the output only.   Variable inspector: The variable inspector shows the names of all variables created in the notebook, with their type, size, shape, and value.   Table of Content: Just like a word doc’s table of content, ToC in notebook facilitates easier navigation and tracking of all the cells.   Gist-it: Using this extension, you can publish the current notebook as a gist.           Execute time: This extension displays when each cell has been executed and how long it took.   There are many more extensions like Code-pretify extension which reformats and prettifies the contents of code cells, AutoSaveTime can set the notebook autosave interval, additionally, you can also set time interval to autosave your code. All the extension you enable will be visible in toolbar. Install the notebook and explore the extensions to see which ones will be most useful to you. Share this on

Follow us on
Author :
Free Data Science & AI Starter Course

Enrol For A Free Data Science & AI Starter Course

Learn R, Python, basics of statistics, machine learning and deep learning through this free course and set yourself up to emerge from these difficult times stronger, smarter and with more in-demand skills! In 15 days you will become better placed to move further towards a career in data science. Upgrade to the specialization programs at attractive discounts!

Don't Miss This Absolutely Free, No Conditions Attached Course