Skip to main content

Are Your Intellisense Working In Jupyter Notebook?

Can you imagine a life of a programmer using an editor having no intellisense support? In today’s era where most of us are working in many programming languages at the same time, it is very difficult to remember the syntax of all the programming languages?

The one thing which is most important is the underlying concept of any programming language and if you are good in those fundamentals, there are various ways to get help in writing code. It could be by using a search engine, by going through some book, by lending fellow coder’s hand, by using editor’s or IDEs capabilities, etc.

My personal favorite way is by taking the help of IDE. I prefer the IDE which provides very good support for syntax and coding guidelines.

In today’s article, I’m focusing on Jupyter notebook inside VS Code, which is a very common IDE these days when you are coding in Python.

By default, syntax support or say intellisense support is not enabled in Jupyter Notebook in VS Code and hence we need to enable it using some key steps.

Install Required Extension

As a first step, make sure that Pylance extension is installed inside your VS Code. To get this extension installed, you can click on Extensions button from the side bar and search for Pylance as shown in screenshot below:


Once the extension is installed, it will start showing intellisense. But by any chance, if it is not showing, then you can move on to the next step for further troubleshooting.

Enable Settings

Open settings either from the menu bar or from the Settings button shown on bottom left:

Next, we need to search for autocomplete and select Python. Doing this will show Edit in settings.json button on the right-hand side panel:

Just add the below highlighted JSON property with the path of your Python executable.

Save the changes and see the magic.

All your intellisense are working as expected. If you feel that some of the areas are not covered, then you can check out my YouTube recording depicting the same:


Happy troubleshooting!

Comments