Feb-19-2018, 12:15 AM
(This post was last modified: Feb-19-2018, 12:15 AM by SimonBiggs.)
I made a python package that lets you quickly create live-update GUIs for Python packages using Markdown and a few custom HTML elements. Under the hood it uses the Jupyter Notebook server, Angular, Angular Material, Phosphor and JupyterLab.
The repository can be found at:
https://github.com/SimonBiggs/scriptedforms
If you would like to quickly take scriptedforms for a spin first install it:
Then copy the following into a python prompt:
Then open up quick-start.md in a text editor and make changes. See your GUI live update to the changes. Check out the repo link above for more details on what you can do.
I'm keen for any feedback on whether or not you find this useful.
Cheers,
Simon
The repository can be found at:
https://github.com/SimonBiggs/scriptedforms
If you would like to quickly take scriptedforms for a spin first install it:
Quote:pip install scriptedforms
Then copy the following into a python prompt:
import scriptedforms as sf # workaround for https://github.com/SimonBiggs/scriptedforms/issues/24 def create_file(filename, contents): with open(filename, 'w') as f: f.write(contents) filename = 'quick-start.md' markdown_contents = """ # An example <section-live> <variable-string>your_name</variable-string> ```python print('Hello {}!'.format(your_name)) ``` </section-live>""" create_file(filename, markdown_contents) sf.load(filename)Note that because scriptedforms relies on the jupyter notebook server the above code cannot be run within a jupyter app itself. For example, that means that you cannot use an ipython prompt or a jupyter notebook to run the above code.
Then open up quick-start.md in a text editor and make changes. See your GUI live update to the changes. Check out the repo link above for more details on what you can do.
I'm keen for any feedback on whether or not you find this useful.
Cheers,
Simon