@@ -10,7 +10,7 @@ pyobjcryst
10
10
Python bindings to ObjCryst++, the Object-Oriented Crystallographic Library.
11
11
12
12
The documentation for this release of pyobjcryst can be found on-line at
13
- http ://diffpy.github .io/pyobjcryst.
13
+ https ://pyobjcryst.readthedocs .io/
14
14
15
15
16
16
INSTALLATION
@@ -20,17 +20,26 @@ pyobjcryst is available for Python 3.7 (deprecated), and 3.8 to 3.11.
20
20
Using conda (recommended)
21
21
^^^^^^^^^^^^^^^^^^^^^^^^^
22
22
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.
27
25
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 ::
29
37
30
38
conda install -c conda-forge pyobjcryst
31
39
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
34
43
35
44
You can also install from the "diffpy" channel - especially if you use
36
45
pyobjcryst allong with the other diffpy tools for PDF calculations,
@@ -41,6 +50,20 @@ of packages for structure analysis ::
41
50
42
51
conda install -c diffpy diffpy-cmi
43
52
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
+
44
67
From source
45
68
^^^^^^^^^^^
46
69
The requirements are:
@@ -97,17 +120,14 @@ displayed in a jupyter notebook:
97
120
``py3dmol `` and ``ipywidgets `` modules. See the notebook
98
121
``examples/cystal_3d_widget.ipynb ``
99
122
* 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
101
124
notebook ``examples/cimetidine-structure-solution-powder.ipynb ``
102
125
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
105
128
use this in jupyterlab.
106
129
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.
111
131
112
132
DEVELOPMENT
113
133
-----------
0 commit comments