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

Text fields retaining value (only visually) on kernel restart #191

Closed olivercrask closed 6 years ago

olivercrask commented 6 years ago

When restarting the Jupyter Kernel, text fields remain filled in but python cannot detect the value.

E.g. in this instance, Python says it cannot find a value for 'User' unless I click on the field, edit a character and then re-run the python script with a button.

image

SimonBiggs commented 6 years ago

Yup, this should be an easy fix. I'll schedule that for the next release.

SimonBiggs commented 6 years ago

Thank you for reporting these by the way. This particular issue was bugging me also but I was working around it by just setting the variables to None in a start field. However it shouldn't need a work around. I'll see if I can get some time later today to fix this one up.

olivercrask commented 6 years ago

Great, happy to help. Looks like this could become a unique and incredibly useful tool

SimonBiggs commented 6 years ago

I really hope so :). We have already found it quite useful at work. As it becomes more polished that should only increase.

SimonBiggs commented 6 years ago

Fixed in https://github.com/SimonBiggs/scriptedforms/commit/0d2fdc931e423b5285bb8c9f3acc1f2c261491e3