# Python related Problems

[[_TOC_]]

## Q: Installing Cartopy on Jet Cluster?
[Cartopy Installation Notebook](QA-001-Cartopy-Installation-Jet.ipynb)

The user needs to load `geos` and `proj` libraries and install via 
`pip install --user cartopy` or create an anaconda environment and install there. 

*Installing from `conda-forge` is also possible, without loading any modules.* 
e.g. `conda install -c conda-forge cartopy` in a conda environment. 
This installs the libraries as well. (Not recommended)

## Q: Load Modules into the current Notebook Environment?
[Modules laoded in Kernel](QA-002-Modules-loaded-Kernel.ipynb)

The Idea is to create a `load_modules_into_jupyter.conf` file in your home directory asking for modules to be loaded when ther kernel is launched. 
*Please note that the file needs an empty line at the end*

## Q: How to create a user environment?
[Conda/Virtual Environment](QA-003-Conda-Environment.ipynb)

The idea is to install a conda or virtual environment and use that as a kernel for your notebooks. *Please note the solution for cartopy*

## Q: The Notebook server on the TeachingHub won't start?
[Teaching-Hub Spawn](QA-004-TeachingHub-SpawnFailed.md)

This usually happens because of an old configuration. Try to remove `~/.jupyter` on SRVX1.