Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i disable Jupyter as VS Code's default Python executor?

Jupyter kernel is slow to load and I don't need code cells in VS Code (they're poorly formatted anyways, and just awkward). Is there any way to disable Jupyter kernel as the executor and just go back to using ipython in the attached VS Code terminal?

like image 426
Chris Ivan Avatar asked Apr 02 '19 03:04

Chris Ivan


People also ask

How do I change the default interpreter in Python VS Code?

To do so, open the Command Palette (Ctrl+Shift+P) and enter Preferences: Open User Settings. Then set python.defaultInterpreterPath , which is in the Python extension section of User Settings, with the appropriate interpreter.

What is the difference between Jupyter and Visual Studio code?

Jupyter Notebooks in VS Code. Jupyter (formerly IPython Notebook) is an open-source project that lets you easily combine Markdown text and executable Python source code on one canvas called a notebook. Visual Studio Code supports working with Jupyter Notebooks natively, and through Python code files.


1 Answers

This is what you need:

"python.dataScience.sendSelectionToInteractiveWindow": false

You can make it directly on settings.json file or through settings tab: Python > Data Science: Send Selection To Interactive Window.

You can make it at user or at workspace level.

like image 182
brunoff Avatar answered Oct 20 '22 13:10

brunoff