SimonBiggs / scriptedforms

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

section-filechange experience #141

Closed robmarkcole closed 6 years ago

robmarkcole commented 6 years ago

OK this is working fine, the only issue I can see is that changes made to the UI table are then not synced back to the .csv file on disk. Will do some more playing.

image

SimonBiggs commented 6 years ago

That's easy enough, and you can update the example as a pull request if you like.

All you need to do is put the table variable within a live section, have writing into that table write to disk. ... I'm not sure how that will handle having someone already opening the file though...

SimonBiggs commented 6 years ago

I'm not sure file read write permissions will let the changes by by-directional.

SimonBiggs commented 6 years ago

As in while you have a file open...

SimonBiggs commented 6 years ago

Workflow wise you might have to make an "input.csv" and an "output.csv". Users write data they want to push to the form into input, when they want to copy data out they use output...

SimonBiggs commented 6 years ago

Alright, this is pushed to 0.6.5 if you could take that version for a spin and confirm you're happy enough with it.

There is still is quite a few more improvements required around the new section:

https://github.com/SimonBiggs/scriptedforms/milestone/18

Which I should be able to fix up soon.

robmarkcole commented 6 years ago

OK 0.6.5 runs fine but how do I configure the write to output.csv ?

SimonBiggs commented 6 years ago

You'll have to use pandas.

SimonBiggs commented 6 years ago

@robmarkcole all good for us to close this issue?