skip to Main Content

I installed the Jupyter Notebook to VS Code, but when I try to run anything it does not show me an output. Does anyone know why? And how I can fix this?

2

Answers


  1. It looks like you aren’t connected to any Jupyter servers, so the cells are actually waiting to be run. Please see Visual Studio Docs on how to set up:

    Setting up your environment

    To work with Python in Jupyter Notebooks, you must activate an Anaconda environment in VS Code, or another Python environment in which you’ve installed the Jupyter package. To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P).

    Once the appropriate environment is activated, you can create and open a Jupyter Notebook, connect to a remote Jupyter server for running code cells, and export a Jupyter Notebook as a Python file.

    Once a cell is ran properly, there should be a green tick under the cell like below: Jupyter cell ran in VSCode

    Login or Signup to reply.
  2. If you configured a virtual environment, you have to select it again with (Ctrl+Shift+P) after your reboot your machine.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search