melkam
melkam7mo ago

Typescript intelisense between jupyter notebooks

I've been trying to run jupyter notebooks with deno, but I've noticed that if I create a variable in one block and try to use it in another, I get a typescirpt error: Cannot find name 'x'. It doesn't really matter because if I run them, everything works as it should. But still, is this a vscode lsp problem? Or deno kernel? Or maybe I'm just setting something up wrong XD. I'm running it on wsl, so maybe it's a deal-breaker.
No description
No description
5 Replies
melkam
melkam7mo ago
I can declare variables in global scope myself and it works, but I think it should be done by default.
No description
Deno AI Helper
Deno AI Helper7mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like you're encountering an issue with TypeScript IntelliSense in the context of Jupyter notebooks when using Deno as the kernel. The error Cannot find name 'x' suggests that the TypeScript language server is not recognizing variables defined in previous cells when you're trying to use them in subsequent cells. This could be related to the scope of the variables within the Jupyter notebook environment when using Deno, or it might be an issue with the Visual Studio Code (VSCode) Language Server Protocol (LSP) integration with Jupyter notebooks. Here are a few things you might want to check or try: 1. Ensure that the Deno extension for VSCode is properly installed and configured. 2. Check if the issue persists across different notebooks or just a specific one. 3. Look for any settings or configurations within the Deno extension or Jupyter extension that might affect variable scope or TypeScript checking. Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this advice and looking for more information on the topic. Since this seems to be an issue related to the interaction between Deno, TypeScript, and Jupyter notebooks within VSCode, you might also want to check the repositories or documentation for those projects for more insights or to file an issue if you believe this is a bug.
Antonio Sampaio
Antonio Sampaio7mo ago
im also facing this problem when using deno Jupiter notebooks
ThetaCake
ThetaCake4mo ago
Same problem for me. Did you ever find a solution?
cdoremus
cdoremus4mo ago
You might want to try this channel where the Deno Jupyter devs tend to hang out: https://discord.com/channels/684898665143206084/1066309002771845202
More Posts
how to compress string into stringHow would i go about compressing a string? i need to compress a string but i need the compressed valFresh - Page title to LayoutHi, I have been browsing around the docs and also being new to JSX,I'm not sure what I look for. WhaWhen I use deno run I get this error: error : Permission denied (os error 13)When I use deno run I get this error: error : Permission denied (os error 13) (for '/Users/apple/LibAxios HttpsProxyAgentHello, I tryed to search but found nothing. I'm using axios with httpProxyAgent to proxy my outgoingGet input from an island, make calculus then render ?I have a route with 2 islands inside - one to get input from user - one to render data Once I've goHow can I create a seqential deno task to pass args to child task?Hi, I read the docs and created tasks in `deno.json` like this. https://docs.deno.com/runtime/manualUsing SCSS with FreshHi, I'm starting to get into Fresh for building simple static websites. Right now I want to use my Has anyone used React Material UI with Deno Fresh? Is this possible and also what are the componenetHas anyone used React Material UI with Deno Fresh? Is this possible and also what are the componenetJSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements'I have a core program, and from that I have auxiliary components: test, web app, cli app. Initially Using Deno.Command to run tailwindcss with watch flag not workingIf I do `new Deno.Command(Deno.execPath(), {args:["run", "-A", "npm:tailwindcss", "-i", "./styles.cs