# Import blockly/python files from PC?

**URL:** <https://xrp.discourse.group/t/import-blockly-python-files-from-pc/215>\
**Category:** Programming tools\
**Created:** [January 10, 2024, 3:54pm UTC](https://xrp.discourse.group/t/import-blockly-python-files-from-pc/215 "2024-01-10T15:54:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debbie386](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Debbie386](https://xrp.discourse.group/u/Debbie386)\
**Post date:** [January 10, 2024, 3:54pm UTC](https://xrp.discourse.group/t/import-blockly-python-files-from-pc/215/1 "2024-01-10T15:54:41Z")

</div>

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??

---

<div class="post-metadata">

**Author:** ![Fgrossman](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Fgrossman](https://xrp.discourse.group/u/Fgrossman)\
**Post date:** [January 10, 2024, 5:15pm UTC](https://xrp.discourse.group/t/import-blockly-python-files-from-pc/215/2 "2024-01-10T17:15:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Debbie386](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Debbie386](https://xrp.discourse.group/u/Debbie386)\
**Post date:** [January 10, 2024, 5:23pm UTC](https://xrp.discourse.group/t/import-blockly-python-files-from-pc/215/3 "2024-01-10T17:23:50Z")

</div>

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](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.
