Home > database >  Can I use Jupyter notebooks in vs code without installing anaconda?
Can I use Jupyter notebooks in vs code without installing anaconda?

Time:11-24

In almost every tutorial that I have seen, it is suggested to install anaconda in order to work with jupyter notebooks in Visual Studio Code, but I don't want all the packages that anaconda offers. Is there any other way to do this?

CodePudding user response:

Yes. Jupyter does not need to have anaconda installed. You could install it in any python environment with pip install jupyter[all].

I do not know how to change the default jupyter environment, but you could start Jupiter notebook from the terminal (using jupyter notebook command) and then copy the link and use it as an exiting server.

enter image description here

CodePudding user response:

Have you installed the Python extension, it is bound with Jupyter and Pylance extensions.

enter image description here

And you can create the jupyter notebook with the command of Jupyter: Create New Jupyter Notebook:

enter image description here

And you can switch the kernels:

enter image description here

After you selected the python interpreter in the Jupyter Notebook, if this environment has not installed the related packages, it will prompt this:

enter image description here

You only need to click install, then the Jupyter extension will help you to install all the packages.

  • Related