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

Support nondefault kernel #49

Open
fecet opened this issue Jan 16, 2023 · 4 comments
Open

Support nondefault kernel #49

fecet opened this issue Jan 16, 2023 · 4 comments

Comments

@fecet
Copy link

fecet commented Jan 16, 2023

Current setup need us to install jupyter_asceding for each virtual environment, which means we have to install jupyter notebook for each envs per #25

Maybe a cleaner and more elegant way to do this is install Jupyter and all plugins in a base envs then we can choose different envs as different kernels from it.

@zplizzi
Copy link
Contributor

zplizzi commented Jan 20, 2023

I don't think this is possible - there's jupyter_ascending code running in the kernel, so I'd imagine it has to be installed in each. Annoyingly the docs on jupyter's extension system seem to have disappeared so it's hard to confirm how this all works.

@fecet
Copy link
Author

fecet commented Jan 21, 2023

Open different notebook for different envs would be painful as we have to set different port every time if we cannot have such features.

@zplizzi
Copy link
Contributor

zplizzi commented Jan 21, 2023

I'm not sure I understand. You should be able to have one instance of jupyter running, which can have multiple notebooks with multiple kernels, as long as the environment for each kernel has jupyter_ascending installed. This won't require multiple ports. One component of jupyter_ascending runs in the main jupyter process, receives commands from the user's editor, and forwards those commands to each of potentially multiple kernels - which each themselves are running code that listens and executes those commands.

@fecet
Copy link
Author

fecet commented Jan 22, 2023

It would be good enough If they can live in one instance of Jupyter. But install jupyter_asceding for a non-default env still complain cannot find a paired notebook. Should I install jupyter for other envs?

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

No branches or pull requests

2 participants