Skip to content

Commit f8c9573

Browse files
Merge pull request #884 from ThatDesert/docs/conda-jupyter-fix
Added troubleshooting for installing cf next to Jupyter and conda
2 parents 6ac5ae0 + 371590b commit f8c9573

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

docs/source/contributing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ ideas, code, and documentation to the cf library:
124124
* Mark Rhodes-Smith
125125
* Matt Brown
126126
* Michael Decker
127+
* Oliver Kotla
127128
* Sadie Bartholomew
128129
* Thibault Hallouin
129130
* Tim Bradshaw

docs/source/installation.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,25 @@ Note that :ref:`some environment variables might also need setting
117117
<UNIDATA-UDUNITS-2-library>` in order for the Udunits library to work
118118
properly, although the defaults are usually sufficient.
119119

120+
.. _Jupyter Notebooks:
121+
122+
Jupyter Notebooks
123+
^^^^^^^^^^^^^^^^^
124+
125+
You may want to work with cf via a Jupyter Notebook within a ``conda`` environment.
126+
127+
A `known issue <https://github.com/NCAS-CMS/cf-python/issues/883/>`_ exists for Python 3.12 only when one wants to install the optional dependency ESMPy. Namely, the stricter dependencies of the Jupyter library clash with those of cf (namely ``zlib`` required by ESMPy) and installation fails.
128+
129+
A proven workaround is to install Jupyter *before* installing cf, like so:
130+
131+
.. code-block:: console
132+
:caption: *Install with conda alongside Jupyter.*
133+
134+
$ conda install jupyter
135+
$ conda install -c conda-forge cf-python cf-plot udunits2
136+
$ conda install -c conda-forge "esmpy>=8.7.0"
137+
138+
120139
----
121140

122141
.. _Source:

0 commit comments

Comments
 (0)