# Can the nninteractive server environment be in a read-only folder

**URL:** <https://discourse.slicer.org/t/can-the-nninteractive-server-environment-be-in-a-read-only-folder/45451>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [December 11, 2025, 9:53pm UTC](https://discourse.slicer.org/t/can-the-nninteractive-server-environment-be-in-a-read-only-folder/45451 "2025-12-11T21:53:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [December 11, 2025, 9:53pm UTC](https://discourse.slicer.org/t/can-the-nninteractive-server-environment-be-in-a-read-only-folder/45451/1 "2025-12-11T21:53:54Z")

</div>

During the workshops there are a lot of interest from biologists to use NNInteractive. However, it does take a while to set it up the server, particularly if you are not familiar that kind of thing.

In MorphoCloud, we can map a read-only share to our instances. If I create the virtual environment and install the NNinteractive server there, can the users safely activate the environment and run the the command `nninteractive-slicer-server --host 0.0.0.0 --port 1527` from that location; i.e., does the server need any write access to the folder while its running.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [December 11, 2025, 10:36pm UTC](https://discourse.slicer.org/t/can-the-nninteractive-server-environment-be-in-a-read-only-folder/45451/2 "2025-12-11T22:36:57Z")

</div>

Yes, I would think so. Should be easy to try.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [December 12, 2025, 4:21pm UTC](https://discourse.slicer.org/t/can-the-nninteractive-server-environment-be-in-a-read-only-folder/45451/3 "2025-12-12T16:21:05Z")

</div>

It seems to work locally. I think I will test on MorphoCloud next workshop.

Meanwhile, it would be nice if the NNINteractive can be self-contained and install the server under Slicer. That way its footprint will be a bit smaller and possibly time to install to start using will be faster as there won’t be two different copies torch and other cuda related large libraries installed in two different environment (venv for the server, and inside the Slicer for the extension itself).

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [December 12, 2025, 4:43pm UTC](https://discourse.slicer.org/t/can-the-nninteractive-server-environment-be-in-a-read-only-folder/45451/4 "2025-12-12T16:43:59Z")

</div>

For posterity here are the instructions:

> <https://github.com/SlicerMorph/Tutorials/blob/main/MorphoCloud/NNInteractive/QuickStart_on_MC.MD>
