Closed ghost closed 3 years ago
Thanks for the bug. Can you include the contents of the 'Jupyter' output panel?
Additionally what's flatpack? Are you talking about this? https://flathub.org/apps/details/com.visualstudio.code
I don't believe that's a supported way to install VS code.
Thanks for the bug. Can you include the contents of the 'Jupyter' output panel?
Okay added it
Additionally what's flatpack? Are you talking about this? https://flathub.org/apps/details/com.visualstudio.code
Yes
I don't believe that's a supported way to install VS code.
i mean yeah, that's true. I'm not sure if this issue is on extension or on distribution side. So if you think it's not problem that is caused by any bug in extension you can close issue and I will just create issue on flathub's github
It looks like your extension is out of date. Latest should be this:
v2021.6.999937645
However the output shows it using '/usr/bin/python' (also known as Python 3.8.8) as the python interpreter. It attempts to load ipykernel and fails which is what is giving you the error.
You said this:
when executing normal python code it works properly - it uses system's python
Not sure what you mean by executing normal python code. Jupyter needs ipykernel to work. Did you mean executing from a jupyter notebook or from a plain python repl?
However the output shows it using '/usr/bin/python' (also known as Python 3.8.8) as the python interpreter. It attempts to load ipykernel and fails which is what is giving you the error.
That's weird :thinking: , my OS's python is 3.9.5. So it looks like it's flatpak's fault. Thanks!
Environment data
Expected behaviour
Jupyter will use system's python interpreter and libaries
Actual behaviour
Jupyter uses python that is shipped with flatpak, it's impossible to change it
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
when executing normal python code it works properly - it uses system's python
but when i try to do that with jupyter it doesn't work so i suspect that it's issue on vsc-jupyter side
Logs
Output for
User belongs to experiment group 'pythonJediLSP' User belongs to experiment group 'jupyterTest' User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher' User belongs to experiment group 'pythonSurveyNotificationcf' User belongs to experiment group 'jupyterEnhancedDataViewer' Info 2021-06-23 20:12:50: ZMQ install verified. Info 2021-06-23 20:12:50: id is 97f7d499-f622-442c-ac63-e8594cbd7754 Info 2021-06-23 20:12:50: Loading web panel for file:///home/pnogas/Code/notebooks/avocado.ipynb Info 2021-06-23 20:12:50: Loading webview. View is notset Info 2021-06-23 20:12:50: Attempting to start a server because of preload conditions ... Info 2021-06-23 20:12:50: Loading web view... Info 2021-06-23 20:12:50: Webview panel created. Info 2021-06-23 20:12:51: Creating raw notebook for file:///home/pnogas/Code/notebooks/avocado.ipynb Info 2021-06-23 20:12:51: Getting preferred kernel for file:///home/pnogas/Code/notebooks/avocado.ipynb Info 2021-06-23 20:12:51: initialize CommonMessageCoordinator Info 2021-06-23 20:12:52: Search all interpreters /bin/python, /sbin/python, /usr/bin/python, /usr/sbin/python Info 2021-06-23 20:12:52: Cached data exists getEnvironmentVariables,Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)``` XXX ```