microsoft/vscode-nodebook

Running the sample instructions not working on macOS

arkaydeus opened this issue ยท 10 comments

Procedure followed

  1. Cloned repo
  2. Opened VSCode in folder
  3. Ran yarn (got warning The engine "vscode" appears to be invalid.)
  4. Hit F5
  5. New VSC instance opened

When opening sample notebook got the following errors:

"Cannot open resource with notebook editor type 'nodebook', please check if you have the right extension installed or enabled."

also

"Activating extension 'undefined_publisher.vscode-nodebook' failed: [undefined_publisher.vscode-nodebook]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api undefined_publisher.vscode-nodebook."

Using VSCode 1.47.2

Glad I wasn't the only one who experienced this error

The latest notebook should work now.

Hi! Same problem here, following the same procedure. Screenshot below:

Captura de Tela 2021-06-07 aฬ€s 00 24 56

Am I doing anything wrong? VSCode 1.56.2.

(Observation: when running yarn, I get: 'The engine "vscode" appears to be invalid.')

Thank you.

I'll have to adapt the code to the latest APIs...

Thank you, Weinand. This is such a great extension.

Getting this error:

yarn install v1.22.18
[1/5] ๐Ÿ”  Validating package.json...
warning vscode-nodebook@1.0.0: The engine "vscode" appears to be invalid.
[2/5] ๐Ÿ”  Resolving packages...
[3/5] ๐Ÿšš  Fetching packages...
[4/5] ๐Ÿ”—  Linking dependencies...
[5/5] ๐Ÿ”จ  Building fresh packages...
โœจ  Done in 9.92s.

Hitting F5 opens up a new window but the file is JSON, not a notebook.

@mhkeller, I know this is 2 years later. But have you fixed the issues? Also, are you using vscode or by any chance GitHub codespace. Because I have the exact same issue while creating a codespace here in main.

@HlexNC โžœ /workspaces/vscode-nodebook (main) $ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
warning vscode-nodebook@1.0.0: The engine "vscode" appears to be invalid.
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...

Done in 0.99s.
@HlexNC โžœ /workspaces/vscode-nodebook (main) $ 

image
image
image

@jrieken Sorry to waste your time, but would you be able to provide some assistance here?

@HlexNC I haven't tried recently. I agree that it would be great if this were working.

As an alternative, I've been working on this type of setup that brings some of the real-time feedback you get from a notebook but preserves the structure of a normal script: https://github.com/mhkeller/interactive-nodejs

It's not perfect and would benefit from changes to the VS Code debug REPL (tracking here).

As I am using GitHub Codespace, my notebook isn't even rendering. I will try running it locally, but currently I don't even have vs code installed locally ๐Ÿ˜