scriptedforms icon indicating copy to clipboard operation
scriptedforms copied to clipboard

Implement as a JupyterLab extension

Open SimonBiggs opened this issue 7 years ago • 11 comments

Implement ScriptedForms as a JupyterLab extension.

SimonBiggs avatar Mar 11 '18 10:03 SimonBiggs

This is now working! It is awesome! :)

image

Ahhh it looks beautiful :)

This has been implemented within the branch https://github.com/SimonBiggs/scriptedforms/tree/jupyterlab-extension

It requires JupyterLab master with the following pull request included to work: https://github.com/jupyterlab/jupyterlab/pull/4334

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

@OxygenLithium @robmarkcole

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

My first order of business will be to see if I can make print work from within JupyterLab. If I manage that then I will work on setting it up so that the JupyterLab version becomes the primary version.

Can still have the standalone version for end user GUIs, however ScriptedForms as a JupyterLab extension will be the main version.

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

Ahh, I can finally add ScriptedForms to the jupyterlab-extension topic list:

https://github.com/search?l=TypeScript&q=topic%3Ajupyterlab-extension&type=Repositories

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

Fantastic!

robmarkcole avatar Apr 07 '18 06:04 robmarkcole

Check it out:

image

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

That console on the right is a complete history of all the code that has been run and its order. Perfect for debugging. Also, you can add custom code in the console and the form variables update appropriately :) :) :D

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

Anyway, gotta go make dinner now :). It was fun :).

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

It's a serious testament to the JupyterLab team how easy it was to pull it all in. They really have made something beautiful. :).

SimonBiggs avatar Apr 07 '18 06:04 SimonBiggs

And you can also of course attach a Notebook to the same kernel:

image

SimonBiggs avatar Apr 07 '18 07:04 SimonBiggs

@robmarkcole this is now available in scriptedforms-0.9.1.dev2.

To get it to work though you need to install JupyterLab from the allow-angular-templates branch within my fork of JupyterLab:

https://github.com/SimonBiggs/jupyterlab/tree/allow-angular-templates

Hopefully that branch gets merged in the following pull request:

https://github.com/jupyterlab/jupyterlab/pull/4334

SimonBiggs avatar Apr 08 '18 13:04 SimonBiggs