# Using MNE with 3D visualization on a headless server

**URL:** <https://mne.discourse.group/t/using-mne-with-3d-visualization-on-a-headless-server/4917>\
**Category:** Support & Discussions\
**Tags:** installation\
**Created:** [May 20, 2022, 9:06pm UTC](https://mne.discourse.group/t/using-mne-with-3d-visualization-on-a-headless-server/4917 "2022-05-20T21:06:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GuillaumeFavelier](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/guillaumefavelier/32/40_2.png) [@GuillaumeFavelier](https://mne.discourse.group/u/GuillaumeFavelier)\
**Post date:** [May 31, 2022, 1:07pm UTC](https://mne.discourse.group/t/using-mne-with-3d-visualization-on-a-headless-server/4917/4 "2022-05-31T13:07:34Z")

</div>

For a usage inside `docker`, the best ressource available AFAIK is [mne-docker](https://github.com/mne-tools/mne-docker) but it might not be up to date.

For reference, I will also describe the standard procedure to use `mne-python` on a remote server using `conda` and `jupyter notebook`, _without_ `docker`:

1. (on server) clone `mne-python`:

`git clone https://github.com/mne-tools/mne-python.git`

1. (on server) create a conda environment from `server_environment.yml`:

`conda env create -f server_environment.yml`

1. (on server) activate the environment:

`conda activate mne`

1. (on server) start `jupyter notebook` in “no browser” mode:

`jupyter notebook --no-browser --port=8889`

1. (on client) ssh forwarding:

`ssh -N -f -L localhost:8888:localhost:8889 username@your_remote_host_name`

1. (on web browser - on client) in the address bar:

`localhost:8888`

Here is a [gist](https://gist.github.com/GuillaumeFavelier/b470330fa71cfdef4c7be94b966ef49b) to showcase the features available.

Further consideration: those steps could be automated inside a docker container too.

---

_[View the full topic](https://mne.discourse.group/t/using-mne-with-3d-visualization-on-a-headless-server/4917)._
