Command line scripting with SlicerDockers

NaglisR
Tue, 20 Sep 2022 11:54:53 +0000
Support

Hi all,

A question regarding executing command line scripts while using SlicerDockers:

I am using GitHub - pieper/SlicerDockers: docker config files for slicer, everything works succesfully, I am able to access Slicer interface via the hosted vnc client.

If possible I would like to send command line requests to the running slicer instance, similar to Slicer.exe --python-code "slicer.util.loadScene('f:/2013-08-23-Scene.mrb')" or Slicer.exe --python-code "doSomething; doSomethingElse; etc." --testing --no-splash --no-main-window

Ultimately I am trying to figure out a way to create a way to open a slicer window from a custom web application, by creating a button which would execute a command, which opens a locally stored nifti file with the running slicer instance (and visible in the vnc window). I know that this exists - New DICOMweb features: launch Slicer from web browser and download/upload data sets to the cloud using DICOMweb but in my case, all the files can be stored in the local storage, no communication with external DICOMWeb databases is necessary.

Is it possible with SlicerDockers? Or is there a better way to achieve similar functionality?

Thank you in advance.

17 posts - 3 participants