-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow Jupyter Notebook Functioning in VS Code #8320
Comments
Can confirm I am also facing this problem. Info:
A perhaps related thing is the use of the default MacOSX backend for interactive plotting. I've noticed that every other command input into the interactive Python terminal is ridiculously slow, possibly never finished until new input keystrokes are detected in the terminal. For example, on my machine a clean session results in the following: |
@peekxc please could you file a separate issue |
This comment has been minimized.
This comment has been minimized.
@murphycj2 |
@david1111039243 @peekxc
|
|
This was the output, although the print statement worked. Let me try to re-create the issue. I am not using SSH I believe I am using verbose logging - does that look correct? |
Yes, however I need all of the output. Thanks again. |
Got it. So I re-created the issue, running a bit of code and then again running the print statement block. Cell 6 is the print statement. By the end, it ran but much slower than I would have expected... I've pasted the full output below - at least I think that's what you were going for -if not, let me know what else to send. Thanks so much for your help troubleshooting! `Jupyter Extension Version: 2021.11.1001493992.
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '"hmac-sha256"' \u2013 or use CUnicode.\n", "pid": 24532}} Verbose 18:32:13: KernelProcess output: Content-Length: 346 {"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use 'hmac-sha256' instead of '"hmac-sha256"' \u2013 or use CUnicode.\n"}}Content-Length: 115 {"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\n", "pid": 24532}}Content-Length: 90 {"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\n"}}Content-Length: 397 {"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'eb7d03fa-82f0-4b3f-98bb-ff4deae857dc' instead of 'b"eb7d03fa-82f0-4b3f-98bb-ff4deae857dc"'.\n", "pid": 24532}}Content-Length: 372 {"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'eb7d03fa-82f0-4b3f-98bb-ff4deae857dc' instead of 'b"eb7d03fa-82f0-4b3f-98bb-ff4deae857dc"'.\n"}}Content-Length: 115 {"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\n", "pid": 24532}}Content-Length: 90 {"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\n"}} Verbose 18:32:13: Python Daemon (pid: 24532): write to stderr: warn( Warn 18:32:13: StdErr from Kernel Process warn( Verbose 18:32:13: Python Daemon (pid: 24532): write to stderr: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'eb7d03fa-82f0-4b3f-98bb-ff4deae857dc' instead of 'b"eb7d03fa-82f0-4b3f-98bb-ff4deae857dc"'. Warn 18:32:13: StdErr from Kernel Process /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/traitlets/traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'eb7d03fa-82f0-4b3f-98bb-ff4deae857dc' instead of 'b"eb7d03fa-82f0-4b3f-98bb-ff4deae857dc"'. Verbose 18:32:13: Python Daemon (pid: 24532): write to stderr: warn( Warn 18:32:13: StdErr from Kernel Process warn( Info 18:32:13: Raw session started and connected |
Hi there. Is that what you were looking for? Let me know if there is additional output you had in mind and I can send that over... Also I get 'timeout' issue saying 'The window is not responding' pop up box, even without running code in the sheet. This is just after opening VSCode - Insiders, scrolling sheet and before any code is run. Interestingly, the markdown cells do not all load, or at least not immediately. Thanks so much for your help! |
Thanks @david1111039243 . |
For what it's worth, I also run into issues with Jupyter labs trying to run this in my browser. Here is a post outlining what I'm running into for Stack Overflow |
Thanks for the response. |
Ok. So you think it is a Jupyter issue? |
Yes, if you are running into this out side vscode and you have confirmed they you area running into the ranger issues in Jupyter lab, then head. |
Has anyone found a solution to this problem? |
@morgankohler and @DonJayamanne, I am experiencing the same issue. |
Hi there, I am experiencing a very similar issue and obviously it is caused by vscode since the same notebook works perfectly well with jupyterlab. Please reopen the issue |
I am experiencing a similar issue in VS Code when editing a Python file with the |
@morgankohler @DmitriyG228 @ogrisel apologies for missing the comments |
Having the same issue here. Running a jupyter notebook and it was working, now running incredibly slowly and only simple functions. I often have to quit out but similar issue happens after running a few cells in the notebook.
Visual Studio Code Version: 1.62.3 (Universal)
Mac OS 11.6 Big Sur
Python 3.9.2 64 bit
running Jupyter extension v2021.10.1101450599
python extension v2021.11.1422169775
Tried running print('hello world') and it worked, but took a long time (see screenshot 40+ seconds)
Other more complex cells in book not running - it seems to time out mid way and give an 'x' icon (see screenshot)
The text was updated successfully, but these errors were encountered: