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

Initialise widgets without going through a notebook #120

Open
pierre-yv opened this issue May 12, 2023 · 3 comments
Open

Initialise widgets without going through a notebook #120

pierre-yv opened this issue May 12, 2023 · 3 comments

Comments

@pierre-yv
Copy link

Also a question rather than an issue.

Let's say I want to have the widgets that I defined to be created without having to run a notebook first, is there a simple way to achieve this?

Right now I am just quickly executing and closing a notebook when the jupyter session starts.

I believe there should be a way to rather go through a python script but I am noit sure how the notebook communicates with the jupyterlab APIs

Does this make sense?

@jtpio
Copy link
Owner

jtpio commented May 14, 2023

Thanks @pierre-yv.

That would indeed be useful.

Probably this will still require a Python kernel to be running. But we could imagine having a plugin in ipylab that reads notebooks or Python files at startup, and starts the kernel automatically. This is not implemented currently but could be.

@pierre-yv
Copy link
Author

Hello,
What would in your opinion be the best way to do this (I am quite ignorant here)?

THis and this?

@jtpio
Copy link
Owner

jtpio commented May 16, 2023

Haven't looked into it that much, but yes starting a kernel via the @jupyterlab/services API will probably be a good first step.

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