DonJayamanne / typescript-notebook

Run JavaScript and TypeScript in node.js within VS Code notebooks with excellent support for debugging, tensorflowjs visulizations, plotly, danfojs, etc
https://marketplace.visualstudio.com/items?itemName=donjayamanne.typescript-notebook
MIT License
913 stars 41 forks source link

Unable to run TS code #7

Closed tanhakabir closed 3 years ago

tanhakabir commented 3 years ago

Suddenly I'm unable to run TS code in Notebooks even though I was able to in the past. I see this: image

It seems like it's stuck on using python even though I set the kernel to be TS: image

The logs from TS Notebook:

Native Notebook already setup
Native Notebook Editor already setup
Kernels directory exists '/Users/tanha/Library/Jupyter/kernels'
KernelSpec already exists /Users/tanha/Library/Jupyter/kernels/typescript/kernel.json
tslab --version, stdout: tslab 1.0.15, stderr: 
tslab is already installed

Logs from TS:

[Info  - 16:16:51.218] Starting TS Server 
[Info  - 16:16:51.218] Using tsserver from: /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js
[Info  - 16:16:51.218] <syntax> Forking...
[Info  - 16:16:51.220] <syntax> Starting...
[Info  - 16:16:51.236] <semantic> Forking...
[Info  - 16:16:51.238] <semantic> Starting...
hinogi commented 3 years ago

image

'Cell is not executable: vscode-notebook-cell:Untitled-5.ipynb#ch0000000untitled' I'm facing a similar problem. But Plain Text seems to work. Also, once you leave the initial cell you cannot select typescript anymore. image

DonJayamanne commented 3 years ago

So sorry I missed this issue, will look into this asap.

tanhakabir commented 3 years ago

Seeing this on latest Insiders. It looks like it's not registering as a kernel properly since I don't have the ability to set the kernel to TS? But I can see typescript listed under my list of Kernels at /Users/tanha/Library/Jupyter/kernels

recording (31)

tanhakabir commented 3 years ago

Looks like it was an issue with not being on the latest Jupyter extension!

@hinogi I'd suggest making sure you're on the latest VS Code Insiders and Jupyter Extension!

DonJayamanne commented 3 years ago

Closing due to inactivity, if this persists, please feel free to re-open or create a new issue