![]() Note: By default, Debug Cell just steps into user code. The first cell also includes Run Below and all subsequent cells include Run Above: ![]() When the Python extension detects a code cell, it adds Run Cell and Debug Cell CodeLens adornments. Note: Make sure to save the code shown above in a file with a. You define Jupyter-like code cells within Python code using a # %% comment: # %% msg = "Hello World" print (msg) # %% msg = "Hello again" print (msg) Once the appropriate environment is activated, you can create and run Jupyter-like code cells, connect to a remote Jupyter server for running code cells, and export Python files as Jupyter notebooks. To select an environment, use the Python: Select Interpreter command from the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P)). ![]() ![]() To work with Jupyter notebooks, you must activate an Anaconda environment in VS Code, or another Python environment in which you've installed the Jupyter package.
0 Comments
Leave a Reply. |