blockpy-edu / blockpy

Blockly that's more Python than JavaScript, powered with Skulpt
Apache License 2.0
391 stars 130 forks source link

Editable CSV Files #100

Open acbart opened 3 years ago

acbart commented 3 years ago

Is BlockPy the best introductory block-based data science environment for Python? I don't know, but not if you can't edit CSV files easily. You can create arbitrary files and read them in, so we're pretty far along with that though.

1) CSV module for skulpt. Can't just copy/paste the Python one, since it is written in C. However, we could probably do something similar to what we do for the JSON module: Take an existing JavaScript CSV parser and use it to provide the interface. 2) Editable table support in BlockPy CSV files. Pick a good off-the-shelf JS module like Tabulator and slap it in. Probably just copy most of the code used in instructions. 3) See if we need a custom block to load a CSV file, or at least provide the block configuration to turn it into a list of dictionaries or something.

We also might add in JSON editing support too, while we're in there.