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

Add jupyter server api runtime #99

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

opqrstuvcut
Copy link

I worked on implementing the ability to run the kernel of jupyter notebook and jupyter lab using the jupyter server api.

For example, suppose you are running jupyter lab as follows.

jupyter lab --ip=0.0.0.0 --port=8080 --NotebookApp.token='token' 

On neovim, run MagmaInit as follows.

:MagmaInit http://localhost:8080/lab?token=token 

@WhiteBlackGoose
Copy link
Collaborator

Looks interesting. There's already a feature though, which allows to connect to a running kernel via files:

jupyter console -f /tmp/file.json

and then :MagmaInit /tmp/file.json

But for some reason for me jupyter lab -f /tmp/file.json does not create this file, I guess it works differently. Never worked with jupyter lab

@opqrstuvcut
Copy link
Author

Thanks for the review.
In my case, I found copying the json files on the server to local to be a hassle and also using jupyter console was not suitable for my operation.

@WhiteBlackGoose
Copy link
Collaborator

Well, it seems to be working fine 😄 . Will need some time though to decide for sure.

I'll need to expand the docs on the MagmaInit command later though

@WhiteBlackGoose WhiteBlackGoose self-requested a review July 8, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants