@@ -10,7 +10,7 @@ pyobjcryst
1010Python bindings to ObjCryst++, the Object-Oriented Crystallographic Library.
1111
1212The documentation for this release of pyobjcryst can be found on-line at
13- http ://diffpy.github .io/pyobjcryst.
13+ https ://pyobjcryst.readthedocs .io/
1414
1515
1616INSTALLATION
@@ -20,17 +20,26 @@ pyobjcryst is available for Python 3.7 (deprecated), and 3.8 to 3.11.
2020Using conda (recommended)
2121^^^^^^^^^^^^^^^^^^^^^^^^^
2222
23- We recommend to use `Anaconda Python <https://www.anaconda.com/download >`_
24- as it allows to install all software dependencies together with
25- pyobjcryst. For other Python distributions it is necessary to
26- install the required software separately.
23+ We recommend to use **conda ** as it allows to install all software dependencies
24+ together with pyobjcryst, without too much compiling hastle.
2725
28- Using conda, we recommend installing pyobjcryst using the "conda-forge" channel ::
26+ Two distributions can be used:
27+
28+ * `Anaconda Python <https://www.anaconda.com/download >`_, the historical
29+ main conda-based distribution
30+ * `Mamba-forge <https://github.com/conda-forge/miniforge/releases >`_ , which
31+ has the advantage off providing **mamba ** in addition to conda, and is
32+ *much faster * when resolving dependencies during installation. It also
33+ uses by default the conda-forge repository, which is what almost all
34+ users would want.
35+
36+ Using conda, we you can install pyobjcryst using the "conda-forge" channel ::
2937
3038 conda install -c conda-forge pyobjcryst
3139
32- Note: when updating, please make sure you are upgrading both
33- libobjcryst and pyobjcryst packages.
40+ Alternatively using mamba ::
41+
42+ mamba install pyobjcryst
3443
3544You can also install from the "diffpy" channel - especially if you use
3645pyobjcryst allong with the other diffpy tools for PDF calculations,
@@ -41,6 +50,20 @@ of packages for structure analysis ::
4150
4251 conda install -c diffpy diffpy-cmi
4352
53+ Complete new conda environment with optional GUI and jupyter dependencies
54+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55+
56+ Assuming you have installed `Mamba-forge <https://github.com/conda-forge/miniforge/releases >`_,
57+ you can directly create a new conda environment named `pyobjcryst ` with all useful dependencies (including
58+ jupyter-lab, python 3.11..) using ::
59+
60+ mamba create -n pyobjcryst python=3.11 pyobjcryst matplotlib py3dmol jupyterlab ipympl multiprocess
61+
62+ Then you can activate the environment and launch jupyter-lab using ::
63+
64+ conda activate pyobjcryst
65+ jupyter-lab
66+
4467From source
4568^^^^^^^^^^^
4669The requirements are:
@@ -97,17 +120,14 @@ displayed in a jupyter notebook:
97120 ``py3dmol `` and ``ipywidgets `` modules. See the notebook
98121 ``examples/cystal_3d_widget.ipynb ``
99122* a PowderPattern can be displayed (and live-updated) if
100- ``matplotlib `` ( and optionally ``ipympl ``) are installed. See the
123+ ``matplotlib `` and ``ipympl `` are installed. See the
101124 notebook ``examples/cimetidine-structure-solution-powder.ipynb ``
102125
103- In short, ``pip install jupyter matplotlib ipywidgets py3dmol ``
104- will give you all the required dependencies. Note that you can also
126+ In short, ``conda install jupyter matplotlib ipympl py3dmol ``
127+ will give you all the required dependencies. You can also
105128use this in jupyterlab.
106129
107- Note that ``jupyter ``, ``ipywidgets ``, ``matplotlib `` and ``ipympl `` can
108- be installed using conda(-forge), but ``py3dmol `` should be installed using
109- ``pip ``, as the conda version is obsolete.
110-
130+ These packages can also be installed using ``pip `` if you do not use conda.
111131
112132DEVELOPMENT
113133-----------
0 commit comments