Open RakhulR opened 1 year ago
Hey @RakhulR, thanks for reporting. I'll move your issue to the Spyder-notebook repository, which is where it really belongs.
You'll receive support there from its maintainer.
I tried to reproduce your issue on Linux, but both undo/redo and shift+enter work for me on Linux. I will try to pip install the package on Windows in a few days and hopefully the issue that you report will appear then.
In the mean time, can you please go to the Options menu in the Notebook pane (click on the icon ≡ with three horizontal lines in the upper right corner about the notebook), select Server Info and copy the results here?
I tried to reproduce your issue on Linux, but both undo/redo and shift+enter work for me on Linux. I will try to pip install the package on Windows in a few days and hopefully the issue that you report will appear then.
In the mean time, can you please go to the Options menu in the Notebook pane (click on the icon ≡ with three horizontal lines in the upper right corner about the notebook), select Server Info and copy the results here?
Thanks for your response. I pip installed in one of my other system and the same problems are shown there too.
The below is the server information form the pc I reported the issue:
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
A _jupyter_server_extension_points
function was not found in jupyter_lsp. Instead, a _jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
A _jupyter_server_extension_points
function was not found in nbclassic. Instead, a _jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
A _jupyter_server_extension_points
function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
To access the server, open this file in a browser:
file:///C:/Python/WPy64-31140/settings/runtime/jpserver-1336-open.html
Or copy and paste one of these URLs:
http://localhost:8888/tree?token=65f27ee2f332f35c3dac81b27a68c631d5b2b87a9520364f
http://127.0.0.1:8888/tree?token=65f27ee2f332f35c3dac81b27a68c631d5b2b87a9520364f
Could not determine npm prefix: [WinError 2] The system cannot find the file specified
0.01s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Notebook AppData/Local/Temp/spyder/notebooks/untitled0.ipynb is not trusted
404 GET /kernelspecs/python3/logo-64x64.png (dd79e3b82f8847b5845867e3758817e2@::1) 139.14ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb
Uncaught exception GET /api/nbconvert?1694670288781 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/nbconvert?1694670288781', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\tornado\web.py", line 1786, in _execute
result = await result
^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\jupyter_server\services\nbconvert\handlers.py", line 40, in get
exporters = await run_sync(base.get_export_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\nbconvert\exporters\base.py", line 150, in get_export_names
e = get_exporter(exporter_name)(config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\nbconvert\exporters\base.py", line 109, in get_exporter
exporter = [e for e in exporters if e.name == name or e.name == name.lower()][0].load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\site-packages\importlib_metadata__init__.py", line 209, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\WPy64-31140\python-3.11.4.amd64\Lib\importlib__init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
Thanks for the info. I don't understand right away where those errors come from, but there is definitely something wrong. Some messages mention a package nbconvert_reportlab
that I am not familiar with. Is this package also installed on the other system that you have which shows the same problems?
Thanks for the info. I don't understand right away where those errors come from, but there is definitely something wrong. Some messages mention a package
nbconvert_reportlab
that I am not familiar with. Is this package also installed on the other system that you have which shows the same problems?
in the other system nbconvert_reportlab
is not installed:
The server info from this other system is:
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
A _jupyter_server_extension_points
function was not found in jupyter_lsp. Instead, a _jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
A _jupyter_server_extension_points
function was not found in nbclassic. Instead, a _jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
A _jupyter_server_extension_points
function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
To access the server, open this file in a browser: file:///C:/Users/rakhu/AppData/Roaming/jupyter/runtime/jpserver-17472-open.html Or copy and paste one of these URLs: http://localhost:8888/tree?token=8341fec2a9dfe642db29900c4ab2ea3a768171c6e5047bec http://127.0.0.1:8888/tree?token=8341fec2a9dfe642db29900c4ab2ea3a768171c6e5047bec Notebook AppData/Local/Temp/spyder/notebooks/untitled0.ipynb is not trusted 404 GET /kernelspecs/python3/logo-64x64.png (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 93.01ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714412063 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714412063 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 80.04ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 3.99ms referer=None 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714413066 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714413066 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 0.00ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 4.00ms referer=None 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714414069 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714414069 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 4.00ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 3.96ms referer=None 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714419075 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714419075 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 4.00ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 0.00ms referer=None 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714430075 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714430075 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 3.98ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 4.00ms referer=None 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714454089 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714454089 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 4.00ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf/channels?session_id=7f3281a0-b29a-4789-9f3c-a5c00de893bc (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 3.97ms referer=None 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714483090 (::1): Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf wrote error: 'Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf' Traceback (most recent call last): File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\tornado\web.py", line 1786, in _execute result = await result File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\handlers.py", line 73, in get model = await ensure_async(km.kernel_model(kernel_id)) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 501, in kernel_model self._check_kernel_id(kernel_id) File "C:\Python\WPy64-39100\python-3.9.10.amd64\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 532, in _check_kernel_id raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id) tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: beeedb6d-85e5-4978-b80d-86baf6e81faf) 404 GET /api/kernels/beeedb6d-85e5-4978-b80d-86baf6e81faf?1694714483090 (4ad6c23ddeb64187aeeb5ba52dc5f611@::1) 0.00ms referer=http://localhost:8888/spyder-notebooks/AppData/Local/Temp/spyder/notebooks/untitled0.ipynb
I did not manage to reproduce exactly the symptoms that you are seeing. However, I tried to install the plugin using pip on Windows several times with different versions and all my attempts were buggy, often so badly that they can't really be used. I tried to find the cause but without success. My investigations have been circling around qtwebengine, but there are too many layers and I can't isolate a simple example exhibiting the bug. I am afraid I have given up on this, because we are changing the build and installation process for Spyder 6 (due in a couple of months) which should bypass the problematic pip modules.
In the short term, the only advice I can give you is to install using conda (or mamba), as the qtwebengine package there is more stable in our experience. Sorry that I can't help more.
Description
What steps will reproduce the problem?
Bug 1: undo and redo not working on cells in spyder-notebook
Bug 2: shortcut for run and advance(shift+enter) in spyder-notebook do not works before entering a cell. ie. just selecting the a cell and pressing shift+center do not run the cell.
Versions
Dependencies