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

Open new kernel communication from ipylab #49

Open
hbcarlos opened this issue Jul 29, 2020 · 4 comments
Open

Open new kernel communication from ipylab #49

hbcarlos opened this issue Jul 29, 2020 · 4 comments

Comments

@hbcarlos
Copy link

Trying to use ipylab without a notebook.

We have an extension for JupyterLab that creates a new kernel connection and executes the following code in the kernel:

from ipylab import JupyterFrontEnd, Panel, SplitPanel
from ipywidgets import IntSlider, Layout
app = JupyterFrontEnd()
panel = Panel()
slider = IntSlider()
panel.children = [slider]
app.shell.add(panel, 'main', { 'mode': 'split-right' })

The issue is that with the response we get the exception "Exception opening new comm" that comes from _handelCommOpen() when calls to loadObject.

Screenshot 2020-07-29 at 22 39 53

Screenshot 2020-07-29 at 22 42 42

@jtpio
@wolfv

@jtpio
Copy link
Owner

jtpio commented Jul 30, 2020

Thanks @hbcarlos for opening this issue.

We have an extension for JupyterLab

If there is already a JupyterLab extension, why not use the JupyterLab API in TypeScript directly?

Or is the goal being able to use the existing Panel and other shortcuts from ipylab directly to quickly create new widgets?

Ideally we would be able to do everything from Python at some point, with something like:

from ipylab import Kernel
kernel = new Kernel
# and then somehow create widgets for that kernel

@hbcarlos
Copy link
Author

hbcarlos commented Aug 3, 2020

Or is the goal being able to use the existing Panel and other shortcuts from ipylab directly to quickly create new widgets?

The idea is to use ipylab to quickly create new widgets for JupyterLab using only python.

@djangoliv
Copy link

I also tried the same kind of thing.
I was hoping to open a notebook in jupyterlab via the command line (a feature that jupyterlab lacks to be a real IDE).
jupyterlab/jupyterlab#5056

Do you think this is (or will be) possible with ipylab?
Regards

@jtpio
Copy link
Owner

jtpio commented Jul 17, 2023

@djangoliv linking to jupyterlab/jupyterlab#9687 which was experimented with in JupyterLab directly, and could be related.

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

3 participants