Hi all,
I'm getting a new machine setup (Fedora 27) and have elected to go the conda route instead of compiling Cantera.
After doing so and activating my environment (ChemEnv), I can load cantera in python at the command line, but when I open a jupyter notebook from my environment and then try to import cantera, I get "
ImportError: No module named cantera"
The paths are clearly different:
From my terminal, where I can load cantera in python, I have sys.path as:
>>> sys.path
['', '/home/fuller/miniconda2/envs/ChemEnv/lib/python36.zip', '/home/fuller/miniconda2/envs/ChemEnv/lib/python3.6', '/home/fuller/miniconda2/envs/ChemEnv/lib/python3.6/lib-dynload', '/home/fuller/miniconda2/envs/ChemEnv/lib/python3.6/site-packages']
and in jupyter I get the non-environment / system path:
['',
'/usr/lib/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/IPython/extensions',
'/home/fuller/.ipython']
I looked at https://ipython.readthedocs.io/en/stable/install/kernel_install.html#kernels-for-different-environments , but I'm not entirely sure what I need to run for
"/path/to/kernel/env/bin/python -m ipykernel install --prefix=/path/to/jupyter/env --name 'python-my-env'" (I'm getting confused about which environment and path is which)
Is this even the right way to fix this problem or is there some other way to get cantera integrated into my jupyter notebooks without compiling cantera from source?
Thank you