|
12 | 12 | "#### Requirements:\n",
|
13 | 13 | "\n",
|
14 | 14 | "* The [AnyBody Modeling System](http://www.anybodytech.com)\n",
|
15 |
| - "* A Scientific Python distribution\n", |
| 15 | + "* Python\n", |
16 | 16 | "\n",
|
17 | 17 | "\n",
|
18 | 18 | "#### Easy Installation: \n",
|
19 | 19 | "\n",
|
20 |
| - "- Download and install the a [conda Python distribution](https://www.continuum.io/downloads)\n", |
| 20 | + "The best way to get started is using the pixi package manager. It will automatically install python and all needed depencies for you. \n", |
21 | 21 | "\n",
|
22 |
| - "- After installation, open the Anaconda command prompt and type:\n", |
| 22 | + "Install the [pixi](https://pixi.sh/) package manager for Python.\n", |
23 | 23 | "\n",
|
24 | 24 | "> ```bash\n",
|
25 |
| - "> conda config --add channels conda-forge\n", |
26 |
| - "> conda install anypytools\n", |
| 25 | + "> powershell -ExecutionPolicy ByPass -c \"irm -useb https://pixi.sh/install.ps1 | ie\n", |
27 | 26 | "> ```\n",
|
28 |
| - " \n", |
29 |
| - "This will install the newest version of AnyPyTools. Note: If Anaconda is 'Installed for all users' it may be necessary to run the command with admin rights. \n", |
30 | 27 | "\n",
|
31 |
| - "To update the package in case of newer versions run\n", |
| 28 | + "After installation, open your working directory in the terminal and run the following command:\n", |
32 | 29 | "\n",
|
33 |
| - ">```bash\n", |
34 |
| - "> conda update anypytools\n", |
| 30 | + "> ```bash\n", |
| 31 | + "> pixi init\n", |
| 32 | + "> pixi add anypytools\n", |
| 33 | + "> pixi install\n", |
35 | 34 | "> ```\n",
|
| 35 | + " \n", |
| 36 | + "This will create a virtual python environment in that folder and install the AnyPyTools package. Likwise, you can add other depedencies to the virtual environment (e.g. `pixi add jupyter pandas`). All dependencies are tracked in the `pixi.yaml` file which can also be edited manually. \n", |
| 37 | + "\n", |
| 38 | + "You can now activate the virtual environment with `pixi shell` and run your scripts. Otherwise, you can prefix your commands with `pixi run` to run them in the virtual environment. \n", |
| 39 | + "\n", |
| 40 | + "e.g.: \n", |
| 41 | + "```bash \n", |
| 42 | + "pixi run python my_script.py\n", |
| 43 | + "```\n", |
| 44 | + "\n", |
| 45 | + "### Controling the version of AnyBody used by AnyPyTools\n", |
| 46 | + "\n", |
| 47 | + "The clever part of using a package manger like pixi is that you can also control which version of the AnyBody console application is used by AnyPyTools.\n", |
| 48 | + "\n", |
| 49 | + "A light weight headless version of AnyBody exists as [conda-packages](https://anaconda.org/anybody/anybodycon). Hence, we can install a specific version of AnyBody into our virtual environment. \n", |
36 | 50 | "\n",
|
37 |
| - "<img src=\"Tutorial_files/relax.png\" alt=\"\" align=\"left\" style=\"height: 150px;\"/>" |
| 51 | + "To do this we first need to add the `anybody` channel to our project. \n", |
| 52 | + "\n", |
| 53 | + "```bash\n", |
| 54 | + "pixi project channel add anybody` \n", |
| 55 | + "```\n", |
| 56 | + "\n", |
| 57 | + "Then we can install a specific version of AnyBody console application. \n", |
| 58 | + "\n", |
| 59 | + "```bash\n", |
| 60 | + "pixi add anybodycon=8.0.4\n", |
| 61 | + "```\n", |
| 62 | + "\n", |
| 63 | + "Now all simulations in this project will use the specified version of AnyBody, regardsless of what is installed on the host system." |
38 | 64 | ]
|
| 65 | + }, |
| 66 | + { |
| 67 | + "cell_type": "markdown", |
| 68 | + "metadata": {}, |
| 69 | + "source": [] |
39 | 70 | }
|
40 | 71 | ],
|
41 | 72 | "metadata": {
|
|
0 commit comments