This guide shows how to run TypeScript code inside JupyterLab and VSCode Jupyter notebooks using Deno.
- Python 3.8+
- pip
- VSCode (optional, for Jupyter extension)
- Deno runtime
Install JupyterLab via pip:
python3 -m pip install jupyterlabRun it to check:
jupyter labThis should open JupyterLab in your browser.
If you donโt already have Deno:
macOS/Linux
curl -fsSL https://deno.land/x/install/install.sh | shWindows (PowerShell)
irm https://deno.land/install.ps1 | iexVerify installation:
deno --versionJupyter uses kernels for different languages. To add TypeScript support via Deno:
deno install --unstable -A -f https://deno.land/x/jupyter/install.tsThis command installs the deno-jupyter executable. Now, register the kernel with Jupyter:
deno-jupyter --installCheck that itโs installed:
jupyter kernelspec listYou should see something like:
deno /Users/you/Library/Jupyter/kernels/deno
python3 /.../kernels/python3
Launch JupyterLab:
jupyter labFrom the JupyterLab launcher, you can now open the functions.ipynb notebook file. If prompted, or to change the kernel, select:
Deno (TypeScript/JavaScript)
Choose the deno kernel.
You can also use the same setup in VSCode.
- JupyterLab is installed via
pip. - Deno is installed separately.
jupyter_denoadds a Deno-based TypeScript kernel.- Works seamlessly in both JupyterLab and VSCode notebooks.