@@ -7,7 +7,7 @@ icon: material/cog-box
7
7
## Requirements
8
8
9
9
EasyDiffraction is a multi-platform Python library compatible with ** Python
10
- 3.9 through 3.12** . Ensure Python is installed
10
+ 3.10 through 3.12** . Ensure that Python is installed
11
11
on your system before proceeding with the installation.
12
12
13
13
## Environment setup <small >optional</small > { #environment-setup data-toc-label="Environment setup" }
@@ -35,9 +35,9 @@ recreate the environment.
35
35
```
36
36
=== ":fontawesome-brands-windows: Windows"
37
37
```console
38
- . venv/Scripts/activate # Windows with Unix like shells
38
+ . venv/Scripts/activate # Windows with Unix- like shells
39
39
.\venv\Scripts\activate.bat # Windows with CMD
40
- .\venv\Scripts\activate.ps1 # Windows with Power shell
40
+ .\venv\Scripts\activate.ps1 # Windows with PowerShell
41
41
```
42
42
<!-- prettier-ignore-end -->
43
43
- The terminal should now show ` (venv) ` , indicating that the virtual
91
91
pip install easydiffraction
92
92
```
93
93
94
- To install a specific version of EasyDiffraction, e.g. 1.0.3:
94
+ To install a specific version of EasyDiffraction, e.g., 1.0.3:
95
95
96
96
``` console
97
97
pip install 'easydiffraction==1.0.3'
@@ -117,36 +117,41 @@ for testing purposes.
117
117
To install EasyDiffraction from, e.g., the ` develop ` branch of GitHub:
118
118
119
119
``` console
120
- pip install git+https://github.com/easyscience/EasyDiffractionLib @develop
120
+ pip install git+https://github.com/easyscience/diffraction-lib @develop
121
121
```
122
122
123
123
To include extra dependencies (e.g., charts):
124
124
125
125
``` console
126
- pip install 'easydiffraction[charts] @ git+https://github.com/easyscience/EasyDiffractionLib @develop'
126
+ pip install 'easydiffraction[charts] @ git+https://github.com/easyscience/diffraction-lib @develop'
127
127
```
128
128
129
129
## Running tutorials
130
130
131
131
EasyDiffraction provides a collection of ** Jupyter Notebook examples** that
132
- demonstrate various functionalities. These tutorials are available in the
133
- [ :material-school: Hands-on tutorials] ( ../tutorials/index.md ) section of the
134
- documentation.
132
+ demonstrate various functionalities. These tutorials serve as
133
+ ** step-by-step guides** , helping users understand the workflow of diffraction
134
+ data analysis in EasyDiffraction. They are available in the
135
+ [ :material-school: Tutorials] ( ../tutorials/index.md ) section of the
136
+ documentation as ** static HTML pages** for easy reference. However, you can
137
+ also run them interactively in two ways:
135
138
136
- You can also run these tutorials:
139
+ - ** Run Locally** – Download the Jupyter Notebook file using the
140
+ :material-download: ** Download** button and execute it on your computer.
141
+ - ** Run Online** – Open it with the :google-colab: ** Open in Google Colab**
142
+ button and execute the tutorial directly in ** Google Colab** , without
143
+ requiring any local setup.
137
144
138
- - ** Locally on your machine**
139
- - ** Online via Google Colab** (no local installation required)
145
+ !!! note
140
146
141
- These Jupyter Notebook examples can be downloaded either one by one from the
142
- [ :material-school: Hands-on tutorials] ( ../tutorials/index.md ) section or all
143
- together as a zip archive from the
144
- [ EasyDiffraction releases] ( https://github.com/easyscience/EasyDiffractionLib/releases/latest ) .
147
+ These Jupyter notebooks can also be downloaded all at once as a zip archive
148
+ from the
149
+ [EasyDiffraction releases](https://github.com/easyscience/diffraction-lib/releases/latest).
145
150
146
151
### Run tutorials locally
147
152
148
153
To run tutorials locally, install Jupyter Notebook or JupyterLab.
149
- Here are the steps to take in the case of Jupyter Notebook:
154
+ Here are the steps to follow in the case of Jupyter Notebook:
150
155
151
156
- Install Jupyter Notebook:
152
157
``` console
@@ -155,13 +160,13 @@ Here are the steps to take in the case of Jupyter Notebook:
155
160
- Download the latest EasyDiffraction tutorial examples from GitHub, e.g.,
156
161
using curl:
157
162
``` console
158
- curl --location --remote-name https://github.com/easyscience/EasyDiffractionLib /releases/latest/download/examples.zip
163
+ curl --location --remote-name https://github.com/easyscience/{{project__repos__lib}} /releases/latest/download/examples.zip
159
164
```
160
165
- Unzip the archive:
161
166
``` console
162
167
unzip examples.zip
163
168
```
164
- - Run Jupyter Notebook server in the ` examples/ ` directory:
169
+ - Run the Jupyter Notebook server in the ` examples/ ` directory:
165
170
``` console
166
171
jupyter notebook examples/
167
172
```
@@ -180,7 +185,7 @@ To use Google Colab:
180
185
181
186
- Ensure you have a ** Google account** .
182
187
- Navigate to the
183
- ** [ :material-school: Hands-on tutorials ] ( ../tutorials/index.md ) ** section of
188
+ ** [ :material-school: Tutorials ] ( ../tutorials/index.md ) ** section of
184
189
the documentation.
185
190
- Click the :google-colab: ** Open in Google Colab** button available for each
186
191
tutorial.
0 commit comments