Skip to content
Snippets Groups Projects
Commit 55ddce2b authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra Committed by Enric Tejedor Saavedra
Browse files

Prevent jupyter server from searching Python modules in SWAN_HOME

We replace -s by -I as option to python. -I is both -s and -E, and
-E means that no PYTHON* variable will be inherited by the new
process (the Jupyter server). It also prevents the current
directory to be included in the search path. The latter helps us
prevent problems when the user has some module in SWAN_HOME that
can interfere with the Jupyter server.

Since we now do -I, no setting of the PYTHONPATH in systemuser.sh
will have any effect on the Jupyter server. Anyway, the setting
we did to include the Dask libraries in the PYTHONPATH was
sterile, because the SwanDask extension wraps the Dask lab
extension and uses the environment of the Python3 kernel for it,
which already includes the Dask library dir. This is why we
remove the aforementioned setting.
parent 6a943a9a
Branches master
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment