Skip to content
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

Cannot run Cadabra2 kernel in vscode #6622

Closed
dualer opened this issue Jul 10, 2021 · 32 comments
Closed

Cannot run Cadabra2 kernel in vscode #6622

dualer opened this issue Jul 10, 2021 · 32 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@dualer
Copy link

dualer commented Jul 10, 2021

Environment data

  • VS Code version: vscode insider x64-1.59.0 in win10
  • Jupyter Extension version (available under the Extensions sidebar): v2021.8.1025925145
  • Python Extension version (available under the Extensions sidebar): v2021.6.944021595
  • OS (Windows | Mac | Linux distro) and version: WLS2 Ubuntu 18.04
  • Python and/or Anaconda version: Python 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Jupyter server running: Local & Remote

Expected behaviour

I want to run Jupyter's cadabra2 kernel in vscode locally.

Actual behaviour

I can run it in browser, but it can't be run in vscode locally. See pictures:
image
image

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

I work on win10, but cadabra2 just supports linux and mac, so I choose vscode's extension wls-remote to link windows with linux. I think this is not the key point, and you can think I work on ubuntu 18.04. The important point is how to install cadabra2-kernel, and you can see 1, 2 for more details. In fact, If we install Cadabra2 from source, we will can get cadabra2-kernel automatically as the document said.

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-07-31 15:14:43: ZMQ install verified.
Info 2021-07-31 15:14:43: id is 8a496589-e6ec-4a8f-909a-bf48cf28f983
Info 2021-07-31 15:14:44: Attempting to start a server because of preload conditions ...
Info 2021-07-31 15:14:45: Attempting to start a server because of preload conditions ...
Info 2021-07-31 15:14:46: No controller, hence notebook communications cannot be initialized for editor untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: Setting setActiveController for untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: Intiailize notebook communications for editor untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: Resolving notebook UI Comms (resolve) for untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: initialize CommonMessageCoordinator
Info 2021-07-31 15:14:47: IPyWidgetMessageDispatcher.initialize
Info 2021-07-31 15:14:47: Created and initailized CommonMessageCoordinator
Info 2021-07-31 15:14:47: Attach Coordinator for untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:47: KernelProvider switched kernel to id = .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher
Info 2021-07-31 15:14:47: Starting Notebook in kernel.ts id = .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher
Info 2021-07-31 15:14:47: Creating raw notebook for untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: Getting preferred kernel for untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: Computing working directory untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:47: Connecting to raw session for untitled:Untitled-1.ipynb?jupyter-notebook with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"/home/guowei/.local/share/jupyter/kernels/python369jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6/kernel.json","interpreterPath":"/usr/bin/python3","name":"python369jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.6.9 64-bit","metadata":{"interpreter":{"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"}},"env":{}},"interpreter":{"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"},"id":".jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher"}
Info 2021-07-31 15:14:47: Starting raw kernel Python 3.6.9 64-bit
Info 2021-07-31 15:14:47: installMissingDependencies /usr/bin/python3
Info 2021-07-31 15:14:47: Loading kernelspec from /usr/local/share/jupyter/kernels/cadabra2/kernel.json for undefined
Info 2021-07-31 15:14:47: Loading kernelspec from /home/guowei/.local/share/jupyter/kernels/python3/kernel.json for undefined
Info 2021-07-31 15:14:49: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-31 15:14:49: �[32mWidget Coordinator received IPyWidgets_Ready
Info 2021-07-31 15:14:49: Find preferred kernel for untitled:Untitled-1.ipynb?jupyter-notebook with metadata {"orig_nbformat":4,"language_info":{"name":"python"}} & preferred interpreter {"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"}
Info 2021-07-31 15:14:49: findPreferredKernel score for Python3, Python 3.6.9 64-bit is 10
Info 2021-07-31 15:14:49: findPreferredKernel score for Python 3.6.9 64-bit is 20
Info 2021-07-31 15:14:49: findKernel found Python 3.6.9 64-bit
Info 2021-07-31 15:14:49: Find kernel spec, Class name = C, completed in 2590ms, has a truthy return value, Arg 1: <Uri:Untitled-1.ipynb>, Arg 2: {"orig_nbformat":4,"language_info":{"name":"python"}}, Arg 3: {"_isCancelled":false,"_emitter":{"_disposed":false,"_listeners":{"_first":{"next":{},"prev":{}},"_last":{"next":{},"prev":{}},"_size":1}}}, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"/home/guowei/.local/share/jupyter/kernels/python369jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6/kernel.json","interpreterPath":"/usr/bin/python3","name":"python369jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.6.9 64-bit","metadata":{"interpreter":{"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"}},"env":{}},"interpreter":{"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"},"id":".jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher"}
Info 2021-07-31 15:14:49: PreferredConnection: .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher found for NotebookDocument: untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:49: TargetController found ID: .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher for document untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:49: Setting controller affinity for untitled:Untitled-1.ipynb?jupyter-notebook .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher
Info 2021-07-31 15:14:49: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-31 15:14:49: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-31 15:14:49: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-31 15:14:49: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-31 15:14:49: Kernel Spec for Cadabra2 ignored as we cannot find a matching interpreter {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/usr/local/share/jupyter/kernels/cadabra2/kernel.json","name":"undefined.cadabra2_jupyter","argv":["/usr/bin/python3.6","-m","cadabra2_jupyter","-f","{connection_file}"],"language":"python","path":"/usr/bin/python3.6","display_name":"Cadabra2","metadata":{},"env":{},"interrupt_mode":"signal"},"id":".undefined.cadabra2_jupyter./usr/bin/python3.6..-m#cadabra2_jupyter"}
Info 2021-07-31 15:14:49: Kernel Spec for Cadabra2 ignored as we cannot find a matching interpreter {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/usr/local/share/jupyter/kernels/cadabra2/kernel.json","name":"undefined.cadabra2_jupyter","argv":["/usr/bin/python3.6","-m","cadabra2_jupyter","-f","{connection_file}"],"language":"python","path":"/usr/bin/python3.6","display_name":"Cadabra2","metadata":{},"env":{},"interrupt_mode":"signal"},"id":".undefined.cadabra2_jupyter./usr/bin/python3.6..-m#cadabra2_jupyter"}
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -m pip list
> /usr/bin/python3 -m pip list
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -m pip list
> /usr/bin/python3 -m pip list
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -c "import ipykernel"
> /usr/bin/python3 -c "import ipykernel"
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -c "import ipykernel"
> /usr/bin/python3 -c "import ipykernel"
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -c "import jupyter"
> /usr/bin/python3 -c "import jupyter"
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -c "import jupyter"
> /usr/bin/python3 -c "import jupyter"
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -c "import notebook"
> /usr/bin/python3 -c "import notebook"
Info 2021-07-31 15:14:49: Process Execution: > /usr/bin/python3 -c "import notebook"
> /usr/bin/python3 -c "import notebook"
Info 2021-07-31 15:14:53: Install Missing Dependencies, Class name = E, completed in 6052ms, has a falsy return value, Return Value: undefined
Info 2021-07-31 15:14:53: Kernel launching with ports 9005,9006,9007,9008,9009. Start port is 9000
Info 2021-07-31 15:14:53: Launching kernel daemon for Python 3.6.9 64-bit # /usr/bin/python3
Info 2021-07-31 15:14:53: No custom variables for Kernel as interpreter is not conda, but is Unknown
Info 2021-07-31 15:14:54: Cached data exists getEnvironmentVariables, Untitled-1.ipynb
Info 2021-07-31 15:14:54: Creating daemon process for /usr/bin/python3 with env variables count 0
Info 2021-07-31 15:14:54: Process Execution: > /usr/bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> /usr/bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-07-31 15:14:54: Process Execution: > /usr/bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> /usr/bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-07-31 15:14:54: Starting kernel from scratch with options {"cwd":"/home/guowei"}
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Execute rpc method exec_module in DS Daemon
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Execute rpc method exec_module from /usr/bin/python3
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9008', '--control=9006', '--hb=9005', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"19f2744c-5213-4872-9da5-1280e48b3e9f"', '--shell=9007', '--transport="tcp"', '--iopub=9009', '--f=/tmp/tmp-326hLupYSwOC8Fo.json']
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9008', '--control=9006', '--hb=9005', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"19f2744c-5213-4872-9da5-1280e48b3e9f"', '--shell=9007', '--transport="tcp"', '--iopub=9009', '--f=/tmp/tmp-326hLupYSwOC8Fo.json']
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Exec in DS Kernel Launcher Daemon (observable) ['/usr/bin/python3', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9008', '--control=9006', '--hb=9005', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"19f2744c-5213-4872-9da5-1280e48b3e9f"', '--shell=9007', '--transport="tcp"', '--iopub=9009', '--f=/tmp/tmp-326hLupYSwOC8Fo.json']
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-07-31 15:14:54: Python Daemon (pid: 358): Kernel launched, with PID 360
Warn 2021-07-31 15:14:54: Python Daemon (pid: 358): Waiting for Kernel to die 360
Info 2021-07-31 15:14:54: Launching kernel daemon, Class name = f, completed in 580ms, has a truthy return value, Arg 1: <Uri:Untitled-1.ipynb>, Arg 2: "/home/guowei", Arg 3: {"specFile":"/home/guowei/.local/share/jupyter/kernels/python369jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6/kernel.json","interpreterPath":"/usr/bin/python3","name":"python369jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9008","--control=9006","--hb=9005","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"19f2744c-5213-4872-9da5-1280e48b3e9f\"","--shell=9007","--transport=\"tcp\"","--iopub=9009","--f=/tmp/tmp-326hLupYSwOC8Fo.json"],"language":"python","path":"python","display_name":"Python 3.6.9 64-bit","metadata":{"interpreter":{"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"}},"env":{}}, Arg 4: {"sysPrefix":"/usr","envType":"Unknown","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Jan 26 2021, 15:33:00) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit"}, Return Value: <Return value cannot be serialized for logging>
Info 2021-07-31 15:14:54: Launching kernel in kernelProcess.ts, Class name = b, completed in 581ms, has a truthy return value, Arg 1: "/home/guowei", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"/usr/bin/python3","_handle":{"pid":358},"spawnargs":["/usr/bin/python3","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":358,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Info 2021-07-31 15:14:57: Raw session started and connected
Started kernel Python 3.6.9 64-bit
Info 2021-07-31 15:14:57: Initial setup for untitled:Untitled-1.ipynb?jupyter-notebook starting ...
Info 2021-07-31 15:14:57: UpdateWorkingDirectoryAndPath
Info 2021-07-31 15:14:57: Kernel switching to busy
Info 2021-07-31 15:14:57: Kernel switching to idle
Info 2021-07-31 15:14:57: Kernel switching to busy
Info 2021-07-31 15:14:57: Kernel switching to idle
Info 2021-07-31 15:14:57: Initial setup complete for untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:14:57: Finished connecting d9b4f213-bf9f-4ed5-9bb0-01b83a693e75
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_kernelOptions
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: Registering commtarget jupyter.widget
Info 2021-07-31 15:14:57: IPyWidgetMessageDispatcher.initialize
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_mirror_execute
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: IPyWidgetScriptSource.initialize
Info 2021-07-31 15:14:57: IPyWidgetMessageDispatcher.initialize
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: Kernel switching to busy
Info 2021-07-31 15:14:57: Notebook Session status untitled:Untitled-1.ipynb?jupyter-notebook # Busy
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_registerCommTarget
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_registerCommTarget
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: IPyWidgetMessageDispatcher.initialize
Info 2021-07-31 15:14:57: IPyWidgetMessageDispatcher.initialize
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: Kernel switching to idle
Info 2021-07-31 15:14:57: Notebook Session status untitled:Untitled-1.ipynb?jupyter-notebook # Idle
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: UpdateWorkingDirectoryAndPath
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_mirror_execute
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: Kernel switching to busy
Info 2021-07-31 15:14:57: Notebook Session status untitled:Untitled-1.ipynb?jupyter-notebook # Busy
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: Kernel switching to idle
Info 2021-07-31 15:14:57: Notebook Session status untitled:Untitled-1.ipynb?jupyter-notebook # Idle
Info 2021-07-31 15:14:57: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:14:57: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:14:57: Waiting for idle on (kernel): cd5b4555-aed7-4ca1-a550-a3146ccacec1 -> idle
Info 2021-07-31 15:14:57: Finished waiting for idle on (kernel): cd5b4555-aed7-4ca1-a550-a3146ccacec1 -> idle
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:14:57: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:14:57: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-31 15:14:57: Process Execution: > /usr/bin/python3 -m pip list
> /usr/bin/python3 -m pip list
Info 2021-07-31 15:14:57: Process Execution: > /usr/bin/python3 -m pip list
> /usr/bin/python3 -m pip list
Info 2021-07-31 15:18:37: Execute Cells request 1 0
Info 2021-07-31 15:18:37: Execute Cell 0 untitled:Untitled-1.ipynb?jupyter-notebook
Info 2021-07-31 15:18:37: Cell Index:0, state:undefined, exec: undefined. User queued cell for execution
Info 2021-07-31 15:18:37: Cell Index:0, state:undefined, exec: undefined. Ready to execute
Info 2021-07-31 15:18:37: Cell Index:0, state:undefined, exec: undefined. Before Execute individual cell
Info 2021-07-31 15:18:37: Cell Index:0, state:undefined, exec: undefined. Start execution
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: undefined. Send code for execution
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: undefined. Wait for jupyter execution
Info 2021-07-31 15:18:37: �[32mWidget Coordinator sent IPyWidgets_mirror_execute
Info 2021-07-31 15:18:37: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:18:37: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:18:37: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:18:37: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:18:37: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: undefined. Kernel switching to busy
Info 2021-07-31 15:18:37: Notebook Session status untitled:Untitled-1.ipynb?jupyter-notebook # Busy
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:18:37: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:18:37: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:18:37: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:18:37: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:18:37: �[32mWidget Coordinator sent IPyWidgets_msg
Info 2021-07-31 15:18:37: �[32mPosting message to Notebook UI 
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: undefined. Update output
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_msg_received
Info 2021-07-31 15:18:37: �[32mWidget Coordinator received IPyWidgets_iopub_msg_handled
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. Kernel switching to idle
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. Jupyter execution completed
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. Completed successfully
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. Completed successfully & resolving
Info 2021-07-31 15:18:37: Notebook Session status untitled:Untitled-1.ipynb?jupyter-notebook # Idle
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. After Execute individual cell 3
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. Executed successfully in executeCell
Info 2021-07-31 15:18:37: Cell Index:0, state:3, exec: 1. Execution disposed

@dualer dualer added the bug Issue identified by VS Code Team member as probable bug label Jul 10, 2021
@joyceerhl
Copy link
Contributor

joyceerhl commented Jul 10, 2021

@dualer It looks like we haven't even picked up your base conda environment. Ordinarily you need to start code from Anaconda Prompt in order for VS Code to pick up your conda environments. If you try that, or alternatively add conda to PATH when installing it on WSL, do either of those suggestions fix the problem? Otherwise, could you please provide the Jupyter output logs as well? That usually contains some information about the kernels that we are able to find.

@joyceerhl joyceerhl added the info-needed Issue requires more information from poster label Jul 10, 2021
@joyceerhl joyceerhl removed their assignment Jul 10, 2021
@dualer
Copy link
Author

dualer commented Jul 11, 2021

@dualer It looks like we haven't even picked up your base conda environment. Ordinarily you need to start code from Anaconda Prompt in order for VS Code to pick up your conda environments. If you try that, or alternatively add conda to PATH when installing it on WSL, do either of those suggestions fix the problem? Otherwise, could you please provide the Jupyter output logs as well? That usually contains some information about the kernels that we are able to find.

Ok, I have added the output information above. In fact, when I use aconda to install cadabra2-kernel following the document, I still can't run cadabra2-kernel, so I finally delete miniaconda, and install cadabra2 from source directly. As the document said, I have mentioned it before, I should be able to get cadabra2-kernel automatically after it.

@joyceerhl
Copy link
Contributor

From the log it looks like we did actually find your kernelspec. Not sure why it's not showing up in the kernel list. We might be incorrectly filtering it out.

Info 2021-07-11 09:45:34: Loading kernelspec from /usr/local/share/jupyter/kernels/cadabra2/kernel.json for undefined

@dualer
Copy link
Author

dualer commented Jul 11, 2021

Yes, the strange thing is that I can run cadabra2-kernel in browser, but not in vscode. So I think there might be something wrong in your extension.

@dualer
Copy link
Author

dualer commented Jul 11, 2021

From the log it looks like we did actually find your kernelspec. Not sure why it's not showing up in the kernel list. We might be incorrectly filtering it out.

Info 2021-07-11 09:45:34: Loading kernelspec from /usr/local/share/jupyter/kernels/cadabra2/kernel.json for undefined

I think I should give more information: when I unlink python2 using

sudo unlink /usr/bin/python2 
sudo unlink /usr/bin/python
sudo unlink /usr/bin/python2.7

and link them again using

sudo ln -s /usr/bin/python2.7 /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python2
sudo ln -s /usr/bin/python2.7 /usr/bin/python2.7

I cannot get python2 kernel in vscode, while I can get it in vscode before. Maybe I have changed some variables in some document. This should be related to my question above.

@dualer
Copy link
Author

dualer commented Jul 11, 2021

From the log it looks like we did actually find your kernelspec. Not sure why it's not showing up in the kernel list. We might be incorrectly filtering it out.

Info 2021-07-11 09:45:34: Loading kernelspec from /usr/local/share/jupyter/kernels/cadabra2/kernel.json for undefined

I think I should give more information: when I unlink python2 using

sudo unlink /usr/bin/python2 
sudo unlink /usr/bin/python
sudo unlink /usr/bin/python2.7

and link them again using

sudo ln -s /usr/bin/python2.7 /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python2
sudo ln -s /usr/bin/python2.7 /usr/bin/python2.7

I cannot get python2 kernel in vscode, while I can get it in vscode before. Maybe I have changed some variables in some document. This should be related to my question above.

I have known what's wrong. I had deleted the link /usr/bin/python2.7 😂

@dualer
Copy link
Author

dualer commented Jul 13, 2021

@rchiodo hi rchiodo, I don't know why you closed this issue, and this issue is still unsolved. I said I know what's wrong just means I know why vscode can't find python2 kernel instead of cadabra2 kernel. As @joyceerhl said, your extension might be incorrectly filtering it out. If you think this issue is trivial or something, please give your comment instead just close it like this.

@joyceerhl
Copy link
Contributor

@dualer, sorry, we assumed that you had gotten your setup working.

@joyceerhl joyceerhl reopened this Jul 13, 2021
@dualer
Copy link
Author

dualer commented Jul 13, 2021

@dualer, sorry, we assumed that you had gotten your setup working.

Ok, never mind. Do you have any further ideas for this issue? I have spent much much time on it, but I still stop at this point and don't have any progress.

@rchiodo
Copy link
Contributor

rchiodo commented Jul 13, 2021

Can you do a jupyter kernelspec list --json and paste the results here? Cadabra looks to be a xeus based kernel. We actually don't support these at the moment.

We check this by looking at the arguments in the kernelspec. If it uses xpython it won't be included in the list of kernels.

@dualer
Copy link
Author

dualer commented Jul 14, 2021

Can you do a jupyter kernelspec list --json and paste the results here? Cadabra looks to be a xeus based kernel. We actually don't support these at the moment.

We check this by looking at the arguments in the kernelspec. If it uses xpython it won't be included in the list of kernels.

Ok, the result is

{
  "kernelspecs": {
    "python3": {
      "resource_dir": "/home/guowei/.local/share/jupyter/kernels/python3",
      "spec": {
        "argv": [
          "python",
          "-m",
          "ipykernel_launcher",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "Python 3",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    },
    "cadabra2": {
      "resource_dir": "/usr/local/share/jupyter/kernels/cadabra2",
      "spec": {
        "argv": [
          "/usr/bin/python3.6",
          "-m",
          "cadabra2_jupyter",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "Cadabra2",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    }
  }
}

@DonJayamanne
Copy link
Contributor

@dualer Please could you install the latest version of VS Code Insiders & then install the latest version of the Jupyter extension (I believe this may be fixed in that version). FYI - You need VS Code Insiders 1.59 & the latest Jupyter extension from the marketplace.

@dualer
Copy link
Author

dualer commented Jul 15, 2021

@DonJayamanne Are you sure? I have updated vscode insiders & jupyter extension to the latest version, but it still doesn't work, and everything‘s still the same.

@DonJayamanne
Copy link
Contributor

Please could you upload the logs, from Jupyter output panel

@dualer
Copy link
Author

dualer commented Jul 15, 2021

Please could you upload the logs, from Jupyter output panel

I have uploaded it before, you can see it in the first post.

@DonJayamanne
Copy link
Contributor

No worries, I believe I've identified the problem.

@dualer
Copy link
Author

dualer commented Jul 16, 2021

No worries, I believe I've identified the problem.

Ok, thanks. I look forward to it.

@DonJayamanne DonJayamanne removed the info-needed Issue requires more information from poster label Jul 21, 2021
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jul 21, 2021

How to validate:

{
  "argv": [
    "<fully qualified path to python interpreter>",
    "-m",
    "cadabra2_jupyter",
    "-f",
    "{connection_file}"
  ],
  "env": {},
  "display_name": "Cadabra2",
  "language": "python",
  "interrupt_mode": "signal",
  "metadata": {}
}
  • Open VS Code & confirm this kernelspec is listed in the list of kernels

All we need to ensure is this kernelspec is listed in the list of kernels (previously we wouldn't display this in the list).

@dualer
Copy link
Author

dualer commented Jul 22, 2021

I have modified /usr/local/share/jupyter/kernels/cadabra2/kernel.json as you said, but vscode still doesn't find the cadabra2 kernel. The result of jupyter kernelspec list --json is

{
  "kernelspecs": {
    "python3": {
      "resource_dir": "/home/guowei/.local/share/jupyter/kernels/python3",
      "spec": {
        "argv": [
          "python",
          "-m",
          "ipykernel_launcher",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "Python 3",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    },
    "cadabra2": {
      "resource_dir": "/usr/local/share/jupyter/kernels/cadabra2",
      "spec": {
        "argv": [
          "/usr/bin/python3.6",
          "-m",
          "cadabra2_jupyter",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "Cadabra2",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    }
  }
}

@DonJayamanne
Copy link
Contributor

@dualer apologies, those comments were for our internal engineers to test this out.
If you'd like to get the fix, please install VS Code insiders (isntead of stable) & you'll get the fix. The fix will be officially released in the next release of the extension (insiders versions of VS Code automatically get the latest development build of our extension).

@dualer
Copy link
Author

dualer commented Jul 23, 2021

@DonJayamanne That's all right. I have updated insider to the latest version, but I still cannot get the right result. Look forward to your further information or progress.

@DonJayamanne
Copy link
Contributor

@dualer I'm sorry to hear that, thanks a lot for helping with the validation.
Please could you try this once again (VS Code insiders) & send the logs from the Jupyter output panel.

@dualer
Copy link
Author

dualer commented Jul 24, 2021

@DonJayamanne I have updated the output of jupyter above. I have noticed jupyter reported some error messages as follows
img

Maybe this is the key point.

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jul 24, 2021

That shouldn't matter
When possible please do upload the logs from the latest Jupyter Extension when using VS Code Insiders.
Thanks again.

@DonJayamanne DonJayamanne added the info-needed Issue requires more information from poster label Jul 30, 2021
@dualer
Copy link
Author

dualer commented Jul 31, 2021

I have uploaded the logs of jupyter again.

@dualer
Copy link
Author

dualer commented Jul 31, 2021

I have noticed the folllowing info:

Info 2021-07-31 15:14:49: Kernel Spec for Cadabra2 ignored as we cannot find a matching interpreter {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/usr/local/share/jupyter/kernels/cadabra2/kernel.json","name":"undefined.cadabra2_jupyter","argv":["/usr/bin/python3.6","-m","cadabra2_jupyter","-f","{connection_file}"],"language":"python","path":"/usr/bin/python3.6","display_name":"Cadabra2","metadata":{},"env":{},"interrupt_mode":"signal"},"id":".undefined.cadabra2_jupyter./usr/bin/python3.6..-m#cadabra2_jupyter"}

This should be the point where it went wrong.

@DonJayamanne
Copy link
Contributor

Thanks for the information.
Please could you confirm the interpreter is display in the Python interpreter quick pick,.
To get that list, open a python file, and on the bottom left of the statusbar you'll see the details of the Python interpreter display.
Next please check whether the interpreter /usr/bin/python3.6 exists in that list.

@dualer
Copy link
Author

dualer commented Aug 3, 2021

The result is
image

@DonJayamanne
Copy link
Contributor

Hmmm, ok the problem is its /usr/bin/python3 and not /usr/bin/python3.6.
Thanks I'll fix this at our end.

@greazer greazer added the notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) label Aug 5, 2021
@dualer
Copy link
Author

dualer commented Aug 5, 2021

ok wait for your good news

@DonJayamanne
Copy link
Contributor

@dualer does this now work in VS Code insiders?

@dualer
Copy link
Author

dualer commented Aug 14, 2021

Ok, It works. Thanks for your work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

5 participants