SimonBiggs / scriptedforms

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

Make the option for inline code within sections #181

Closed SimonBiggs closed 6 years ago

SimonBiggs commented 6 years ago

Have a parameter called "run", the code written within run will run as if it was within that section.

This enables minimal code to be within the markdown file.

For example can have from package import * within a start section, and then have all the relevant start code within that package.

Then each section can just call a function which is defined within that package.

SimonBiggs commented 6 years ago

Have the parameter called code.

SimonBiggs commented 6 years ago

Complete