6

I'm able to debug python programs and would like to use jupyter notebooks, but I do not see the Python Extensions under Manage Extensions. I have VS Professional 2019 and many of the Marketplace examples that I'm seeing are not what I see.

This is a picture of my VS screen. When I search I do not find pylance or jupyter extensions.

enter image description here

I reviewed the information on https://code.visualstudio.com/docs/python/jupyter-support and https://towardsdatascience.com/jupyter-notebook-in-visual-studio-code-3fc21a36fe43 and they show using CTRL+SHIFT+P to open the Command Palette and this does not do anything in VS Professional or Community 2019. I also tried VS Community 2019 and I'm getting the same results.

I've also watched Jeffrey Mew's video on Jupyter Notebooks in Visual Studio Code and Tyreke White's video Getting Started with Python in Visual Studio Code and it doesn't match what I see in VS.

dm2
  • 4,053
  • 3
  • 17
  • 28
mikeiz
  • 109
  • 2
  • 6

3 Answers3

5

As far as I can tell... There is no way to work with Jupyter Notebook in Visual Studio that is equivalent to the Visual Studio Code + Jupyter extension experience.

You can, of course, install the jupyter package in any Python environment (use pip or Anaconda) and access the package through the command line. Running jupyter notebook or jupyter lab in the Visual Studio command prompt will open the browser interface (so long as the Python environment is active and jupyter is correctly installed).

The reason Visual Studio Code has a Jupyter extension and Visual Studio does not is probably because Visual Studio and Visual Studio Code serve different purposes. Visual Studio is specifically designed to support .NET and C++ developers. See this quote from the Visual Studio download page:

The most comprehensive IDE for .NET and C++ developers on Windows for building web, cloud, desktop, mobile apps, services and games.

In contrast, Visual Studio Code is more language agnostic, and extensions are used to support development in specific languages.

A standalone source code editor that runs on Windows, macOS, and Linux. The top pick for Java and web developers, with tons of extensions to support just about any programming language.

Joshua Shew
  • 618
  • 2
  • 19
  • 1
    yeah. seems to be where we are at. I didn't know about the .NET part wrt Visual Studio Professional. Thanks for that heads up – Monica Heddneck Aug 06 '23 at 21:50
2

The only way I found you can use Jupyter Notebooks in Visual Studio 2019 is through an Anaconda install. Then you can import the related Jupyter modules that come with Anaconda.

enter image description here

enter image description here

Pfalbaum
  • 586
  • 3
  • 10
  • 26
  • great answer but seems to be low on details. Would you mind elaborating? I've placed a 500 point bounty on the question if that helps. – Monica Heddneck Aug 02 '23 at 22:35
  • 1
    @MonicaHeddneck I no longer use Visual Studio 2019. I've been using Jupyter with Visual Studio Code. – Pfalbaum Aug 03 '23 at 21:07
1

You can install Azure Data Studio to use Jupyter notebook in it or Google Colab.