The XRP code editor has an option to export a file (blockly or python) to your PC, which is handy to ensure you have a copy of what you write.
However I don’t see an “import”.
i.e. if I export a blockly file I get a file called xyz.blocks on my PC. But how do I get it back into the XRP UI?
For Python, I suppose a workaround would be to simply cut and paste the contents into a new file. But for blockly??
The File
menu for XRPCode has the option to Upload to XRP
this option will let you select a file from your computer and upload it to the XRP files.
Hm. That should have been obvious to me. For some odd reason I interpreted that option as one that would load code onto the XRP - as opposed to reading a file from the PC into the editor. Thanks for the quick answer!
It would probably be useful to add a few lines in
https://xrpusersguide.readthedocs.io/en/latest/course/XRPCode.html
to address export and upload.
I would also be helpful to have some suggestions as to how to manage multi-user file management.
I decided to have each student create a folder with their name and put their files into their own folder.
The interface is a little awkward because there is no option to “move” a file from one folder to another. Instead you have to open the file, Save As to another folder and then go back and delete the originals. There’s no copy/paste for files either.
Obviously if we switch back and forth between WPI/Java and Python/Blockly, everything gets wiped out during the switch. So file management suggestions would be useful.
1 Like