You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Learn how to use aiida-fans in this marimo powered tutorial.
3
+
4
+
## Usage
5
+
6
+
Assuming you have FANS, python 3.13, venv, and pip installed on a linux system, the recommended way to use this tutorial is by creating a virtual environment in this directory with the following command:
7
+
8
+
```
9
+
python -m venv .venv
10
+
```
11
+
Then activate this environment like so:
12
+
13
+
```
14
+
source .venv/bin/activate
15
+
```
16
+
17
+
You can ensure the the environment was succesfully activated with `which python` and ultimately deactivate the environment with `deactivate` when you're finished.
18
+
19
+
You may need to install/upgrade pip now with your virtual environment activated. Run the following command:
20
+
21
+
```
22
+
python -m pip install --upgrade pip
23
+
```
24
+
25
+
Once pip is up to date, run the following command to install the tutorial's dependencies:
26
+
27
+
```
28
+
python -m pip install -r requirements.txt
29
+
```
30
+
31
+
Now you are ready to launch the notebook and begin the tutorial. Run the following command and access the marimo notebook at the port provided:
32
+
33
+
```
34
+
marimo run tutorial.py
35
+
```
36
+
37
+
## Alternative Usage
38
+
39
+
### 1. Conda
40
+
41
+
> [!WARNING]
42
+
> This method is a work-in-progress!
43
+
44
+
### 2. Pixi
45
+
46
+
> [!WARNING]
47
+
> This method is a work-in-progress!
48
+
49
+
You can use pixi to install everything you need as defined by the pyproject.toml file. It should bundle python, FANS, AiiDA, aiida-fans, and marimo all into a virtual environment located in a .pixi directory. You can proceed to directly begin the tutorial with:
50
+
51
+
```
52
+
marimo run tutorial.py
53
+
```
54
+
55
+
Activating the environment may look something like this:
0 commit comments