You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
The jupyter.jupyterCommandLineArguments setting can be set with some commands to be run during startup of the ipython terminal, but it is not working.
I would for example like to be able to do import dotenv and dotenv.load_dotenv() during start up of the interactive window to get some envornmental variables loaded in the interactive window environement. Nothing passed in a list to this setting works as expected.
A trivial example would be: "jupyter.jupyterCommandLineArguments": [ "import pandas as pd" ],
This does not have any effect (irrespective of which package, f.ex. import dotenv, does not work either) is not available in the interactive window after startup/restart.
Ref. description in vscode settings GUI:
Jupyter: Run Startup Commands
A series of Python instructions or iPython magic commands. Can be either an array of strings or a single string with commands separated by '\n'. Commands will be silently executed whenever the interactive window loads. For instance, set this to '%load_ext autoreload\n%autoreload 2' to automatically reload changes made to imported files without having to restart the interactive session.
VS Code Version
1.65.2
Jupyter Extension Version
8.1.1
Jupyter logs
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
\InteractiveInput-1 in<cell line: 1>()
----><a href='vscode-interactive-input:/InteractiveInput-1?line=0'>1</a> pd
NameError: name 'pd' is not defined
Coding Language and Runtime Version
Python v3.8.0
Language Extension Version (if applicable)
v2022.2.1924087327
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
N/A or Not sure
The text was updated successfully, but these errors were encountered:
Applies To
What happened?
The jupyter.jupyterCommandLineArguments setting can be set with some commands to be run during startup of the ipython terminal, but it is not working.
I would for example like to be able to do import dotenv and dotenv.load_dotenv() during start up of the interactive window to get some envornmental variables loaded in the interactive window environement. Nothing passed in a list to this setting works as expected.
A trivial example would be:
"jupyter.jupyterCommandLineArguments": [ "import pandas as pd" ],
This does not have any effect (irrespective of which package, f.ex. import dotenv, does not work either) is not available in the interactive window after startup/restart.
Ref. description in vscode settings GUI:
Jupyter: Run Startup Commands
A series of Python instructions or iPython magic commands. Can be either an array of strings or a single string with commands separated by '\n'. Commands will be silently executed whenever the interactive window loads. For instance, set this to '%load_ext autoreload\n%autoreload 2' to automatically reload changes made to imported files without having to restart the interactive session.
VS Code Version
1.65.2
Jupyter Extension Version
8.1.1
Jupyter logs
Coding Language and Runtime Version
Python v3.8.0
Language Extension Version (if applicable)
v2022.2.1924087327
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
N/A or Not sure
The text was updated successfully, but these errors were encountered: