Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sos kernel from the vscode interface #353

Open
BoPeng opened this issue Feb 3, 2024 · 6 comments
Open

Using sos kernel from the vscode interface #353

BoPeng opened this issue Feb 3, 2024 · 6 comments

Comments

@BoPeng
Copy link
Contributor

BoPeng commented Feb 3, 2024

Installed vscode jupyterhub extension, connected to our jupyterhub server, created a jupyter notebook with sos kernel. Unfornately, the kernel does seem to work correctly.

Note that sos notebook could be executed in batch mode and we have magics such as %use to manually change subkernels of cells, so in theory using the sos kernel through the vscode interface can be made to work.

@kundeng
Copy link

kundeng commented Apr 1, 2024

Any updates?

@BoPeng
Copy link
Contributor Author

BoPeng commented Apr 2, 2024

Not really. The interfaces with JupyterLab contains a few JS function to interact with the frontend and does not work here. We may need to develop a pure text-based interface similar to how we implement sos-papermill, but it is hard to justify the effort.

@chenruipu
Copy link

Any updates? And i will be appriciated if you can provide more details about how to use the sos kernel through the vscode interface.

@BoPeng
Copy link
Contributor Author

BoPeng commented Jun 11, 2024

There is no way to get the language dropdown there, which can be overcome by using the %use magic more often. A more serious problem, however, is that (as far as I can tell) there is no way to know the kernel of the current cell, so it will always use the current kernel to execute the cell. This means all cells need to start with a %use magic to make sure the right kernel will be used.

Let me see if I can find some time to have a deeper look at the issue.

@rubensa
Copy link

rubensa commented Jul 5, 2024

In theory this should be feasible as the VSCode Polyglot Notebooks extension does something like this.

@BoPeng
Copy link
Contributor Author

BoPeng commented Aug 18, 2024

VSCode Polyglot Notebook is a totally different beast and it needs .NET installed locally (for my macOS X anyway).

Unless someone who is familiar with VSCode can point out what would be need to add that .NetIneractive button on VSCode/Jupyter, there is no way we can make sos notebook work with vs code.

Just for reference:

  1. vscode etension guide
  2. vscode jupyter extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants