Open egg-juxt opened 4 months ago
It looks like the kernel replaces your username egg
for ~
in the path 🤔 Jupyter extension changes in VSCode @yunabe?
Yeah. I'm not completely sure if it is an issue of finding the kernel executable, or the config file.
It seems to be unable to find the executable, because of the syscall that caused the Exception? (see originalException data above: syscall: 'spawn tslab'
)
It does work when using the Deno kernel though:
18:12:53.392 [info] Process Execution: ~/.deno/bin/deno jupyter --kernel --conn /home/~/.local/share/jupyter/runtime/kernel-v2-2665438FY804s8yRH8M.json
> cwd: //home/~/src/temp/typeorm-xtdb/src
18:12:53.392 [debug] Kernel process 32993.
Solved by adding the following to my ~/.profile
:
# Enable nvm if available
if [ -f ~/.nvm/nvm.sh ]; then
source ~/.nvm/nvm.sh
fi
tslab
starts with #!/usr/bin/env node
, and the task started by VS Code (non-interactive) wasn't finding node
in the PATH.
I wonder if there'd be any VS Code settings, or something could be done in tslab in order to locate a proper node
executable?
Solved by adding the following to my
~/.profile
:# Enable nvm if available if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh fi
tslab
starts with#!/usr/bin/env node
, and the task started by VS Code (non-interactive) wasn't findingnode
in the PATH.I wonder if there'd be any VS Code settings, or something could be done in tslab in order to locate a proper
node
executable?
I can't solve this on windows
i have this issue too on macOS. adding it to my .profile
didn't work. however, i solved it by hardcoding the path to the tslab kernel.json
{"argv": ["/Users/[username]/.config/nvm/versions/node/v20.10.0/bin/tslab", "kernel", "--config-path", "{connection_file}"], "display_name": "TypeScript", "language": "typescript"}
probably not the ideal way to solve the issue, but it should work on Windows as well.
Hi, my
tslab
kernel is not starting when inside the VS Code Jupyter Extension I select the tslab TypeScript kernel.Not sure if it is a problem with the extension, because it seems the JSON config file doesn't get created, so tslab is not able to open it. But I have tested with the Deno kernel and it does start.
From
jupyter lab
it does work.