Create a download button

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


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

1 Like

You can use standard Jupyter widgets for file upload/download, as shown in “File upload/download” section in this example notebook:

I’ve found that FileUpload widget is not reliable for large files (, so you either need to upload using Upload button in the main notebook list or try the script posted here and if you find that it still does not work then add a note to that bug report.

1 Like