avatarYash Prakash

Summary

The article introduces the Hinterland extension for Jupyter Notebooks, providing auto-completion features, and guides readers through its installation and activation.

Abstract

The article titled "The Only Auto-Completion Extension You’ll Ever Need For Your Jupyter Notebooks" recommends the Hinterland extension as an essential tool for Jupyter Notebook users. It emphasizes the convenience of having auto-completion for lengthy import statements and variable names, which is particularly beneficial for Python programming. The author outlines a simple installation process using pip, with specific instructions for pipenv users, and explains how to enable the extension within the Jupyter environment. The article concludes with an encouragement to test the extension and includes a demonstrative GIF showing the auto-completion in action. Additionally, the author invites readers to support their writing by becoming Medium members and provides links to related articles and a terminal beautification guide.

Opinions

  • The author expresses a personal preference for working in VSCode and highlights the importance of auto-completion features in their workflow.
  • The Hinterland extension is highly recommended by the author, who describes it as one of the most useful nbextensions they've used.
  • The author suggests that forgetting library names and using significantly drawn out variable names is a common occurrence among programmers, indicating a shared pain point that Hinterland addresses.
  • The author encourages readers to contribute to their writing endeavors by becoming Medium members, implying that such support is valuable and beneficial for both the author and the readers.

The Only Auto-Completion Extension You’ll Ever Need For Your Jupyter Notebooks

This is the one I recommend using. Explore just a few simple steps to set it up!

Photo by Nathan Dumlao on Unsplash

One of the most loved programming interfaces in Python is the Jupyter Notebook environment, and wanting code auto-completion enabled in it feels quite natural.

I know I like to work in VSCode very often, and the one thing that I regularly missed in my notebooks was the auto completion of my long import statements containing the names of libraries that I quite often tend to forget (:P) and my significantly drawn out variable names that are quite essential in my projects!

Enter: Hinterland Extension!

This extension is one of the most useful nbextensions that I’ve used, and it does exactly as proposed.

Let’s see the steps to get it up and running in our notebooks, shall we?

Install it with pip

One line installation of the nbextensions package is the first step. Here’s the code to do it in your terminal (hopefully inside your virtual environment):

pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install

That’s it. Now go ahead and open up your jupyter notebook!

For all the pipenv users out there, remember that you need to do:

pipenv run jupyter notebook

and not just:

jupyter notebook

The second command should not even work if you’ve not installed Jupyter globally in your system.

Okay, let’s move on to the next step.

Enable Hinterland

Yes, it does not get enabled automatically in your environment. You need to go here and enable it on the nbextensions tab, which is located beside the Files tab:

enable hinterland here!

Once you’ve done that, open up a new notebook, and let’s test it!

Concluding…testing the extension

You should now be able to use it normally and the auto complete hints should pop up all the time as you’re writing.

Something akin to this:

You’re all set! :D

Thank you for reading!

Loved my article? Become a Medium member to continue learning without limits. I’ll receive a portion of your membership fee if you use that link, with no extra cost to you. It will help me support my writing endeavour :)

Also, this is the code + resources repository of all of my Data Science articles. Do check it out if you please!

Another jupyter based article of mine you might want to give a read, it’s related to this one:

Want to make sure you’re more productive in the terminal and beautify it at the same time? This is the article for you:

Python
Jupyter Notebook
Extension
Programming
Machine Learning
Recommended from ReadMedium