SimonBiggs / scriptedforms

Quickly create live-update GUIs for Python packages using Markdown and simple HTML elements.
Apache License 2.0
510 stars 34 forks source link

Rework into multiple jupyterlab extensions #277

Open SimonBiggs opened 6 years ago

SimonBiggs commented 6 years ago

Make each component be its own JupyterLab extension.

https://gitter.im/jupyterlab/jupyterlab?at=5b65c83d945df30dc152a618

Then install all those extensions, and load them up in the same way that jupyterlab loads up its own extensions.

That way the scriptedforms components might also be able to be used within a notebook.

But primarily it will be a good framework for users to add their own components to ScriptedForms.

SimonBiggs commented 6 years ago

Make it so the component selector only works if it is a sub child of a top level scriptedform element. That scriptedform element must contain within it a reference to what kernel it is using. That way the scriptedform elements do not run globally within JupyterLab and whenever they do run, they know what kernel to use.

Should a scriptedform top level component be created within a notebook then it could default to using the kernel that the notebook is using.