# Create a download button

**URL:** <https://discourse.slicer.org/t/create-a-download-button/13772>\
**Category:** Development\
**Created:** [September 30, 2020, 12:25pm UTC](https://discourse.slicer.org/t/create-a-download-button/13772 "2020-09-30T12:25:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Post date:** [September 30, 2020, 12:25pm UTC](https://discourse.slicer.org/t/create-a-download-button/13772/1 "2020-09-30T12:25:34Z")

</div>

Hello everyone,

I would like to be able to create 3 buttons in my Slicer Jupiter kernel. One that will act just like “save as” (download to the desktop .nrrd files), next an upload button doing exactly like this line does:  
**volume = slicer.util.loadVolume(‘Data/image.nrrd’)** but letting the user to choose his .nrrd file.  
And a screenshot button that will capture the scene displayed.

Thanks in advance

Hugo

---

<div class="post-metadata">

**Author:** ![pierrebusson](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pierrebusson](https://discourse.slicer.org/u/pierrebusson)\
**Post date:** [October 12, 2020, 8:47am UTC](https://discourse.slicer.org/t/create-a-download-button/13772/2 "2020-10-12T08:47:04Z")

</div>

Sorry I can’t help you, I’ve got the same problem

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 12, 2020, 3:09pm UTC](https://discourse.slicer.org/t/create-a-download-button/13772/3 "2020-10-12T15:09:34Z")

</div>

You can use standard Jupyter widgets for file upload/download, as shown in “File upload/download” section in this example notebook: [https://github.com/Slicer/SlicerNotebooks/blob/master/01\_Data\_loading\_and\_display.ipynb](https://github.com/Slicer/SlicerNotebooks/blob/master/01_Data_loading_and_display.ipynb)

I’ve found that FileUpload widget is not reliable for large files ([https://github.com/jupyter-xeus/xeus-python/issues/272](https://github.com/jupyter-xeus/xeus-python/issues/272)), so you either need to upload using Upload button in the main notebook list or try the script posted [here](https://github.com/jupyter-xeus/xeus-python/issues/272) and if you find that it still does not work then add a note to that bug report.
