Open new kernel communication from ipylab
hbcarlos opened this issue · comments
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
.
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
Or is the goal being able to use the existing
Panel
and other shortcuts fromipylab
directly to quickly create new widgets?
The idea is to use ipylab
to quickly create new widgets for JupyterLab using only python.
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
@djangoliv linking to jupyterlab/jupyterlab#9687 which was experimented with in JupyterLab directly, and could be related.