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
I have two projects in spyder (Q,X). One of the killer features of Spyder-notebook is that it adds the project to the pythonpath, which makes using notebooks with our code base easier
However if I open a new project (say switch from X-> Q) in spyder, the pythonpath in the notebook still is bound to X
What is the expected output? What do you see instead?
I would hope that it would switch to Q
Please provide any additional information below (stack trace, screenshots, a gif, etc)
I agree that switching projects should switch the python path inside the notebook. This is probably best done by restarting the notebook kernel (and perhaps even the notebook server).
In fact, we are planning on associating opened notebooks with projects (see issue #291). If you change from project X to project Q, then all currently opened notebooks are closed and all notebooks that were open the last time you worked on project Q, are opened again. This is what is currently done with files in the editor. This change would not by itself solve the current issue, but it would make it a lot easier. If you have any feedback on this, please comment on issue #291.
Cool. Closing X-notebooks and reopening Q-notebooks sounds great. But, as I think you point out, this itself will not solve the PYTHONPATH problem, which is, I feel, the more vexing issue b/c if project Q and X refer to different git checkouts of the same project you could get in trouble by using the slightly wrong version with different code semantics that still 'runs' without error.
Description of your problem
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I would hope that it would switch to Q
Please provide any additional information below (stack trace, screenshots, a gif, etc)
Versions and main components
$ cat environment.yml | grep 'spyder\|python\|qt\|jupyter'
OS = Windows 10 SP Version 10.0.19041 Build 19041
Dependencies
Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.4.1 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.16.1 (OK)
jedi =0.15.2 : 0.15.2 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 1.0.0 (OK)
paramiko >=2.4.0 : 2.7.1 (OK)
parso =0.5.2 : 0.5.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.0 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=0.25 : 2.5.3 (OK)
pyls >=0.31.9;<0.32.0 : 0.31.9 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.6.0 : 4.7.5 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.1.1 (OK)
spyder_kernels >=1.9.1;<1.10.0 : 1.9.1 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.1 (OK)
Optional:
cython >=0.21 : 0.29.20 (OK)
matplotlib >=2.0.0 : 3.2.2 (OK)
numpy >=1.7 : 1.18.5 (OK)
pandas >=0.13.1 : 1.0.5 (OK)
scipy >=0.17.0 : 1.5.0 (OK)
sympy >=0.7.3 : None (OK)
Spyder plugins:
spyder_line_profiler : 0.2.1 (OK)
spyder_notebook : 0.2.3 (OK)
The text was updated successfully, but these errors were encountered: