Skip to content

Commit

Permalink
Docs: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
GilesStrong committed Feb 17, 2024
1 parent f6ea4d7 commit 2f590ba
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 87 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Finally, make sure everything is working as expected by running the tests:
poetry run pytest tests
```

For those unfamiliar with `poetry`, basically just prepend commands with `poetry run` to use the stuff installed within the local environment. This local environment is basically a python virtual environment. To correctly set up the interpreter in your IDE, use `poetry run which python` to see the path to the correct python executable
For those unfamiliar with `poetry`, basically just prepend commands with `poetry run` to use the stuff installed within the local environment, e.g. `poetry run jupyter notebook` to start a jupyter notebook server. This local environment is basically a python virtual environment. To correctly set up the interpreter in your IDE, use `poetry run which python` to see the path to the correct python executable.

## Examples

Expand All @@ -105,7 +105,7 @@ If you want to run notebooks on a remote cluster but access them on the browser

On the cluster, run:
```
jupyter notebook --no-browser --port=8889
poetry run jupyter notebook --no-browser --port=8889
```

On your local computer, you need to set up a forwarding that picks the flux of data from the cluster via a local port, and makes it available on another port as if the server was in the local machine:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Finally, make sure everything is working as expected by running the tests:
poetry run pytest tests
```

For those unfamiliar with `poetry`, basically just prepend commands with `poetry run` to use the stuff installed within the local environment. This local environment is basically a python virtual environment. To correctly set up the interpreter in your IDE, use `poetry run which python` to see the path to the correct python executable
For those unfamiliar with `poetry`, basically just prepend commands with `poetry run` to use the stuff installed within the local environment, e.g. `poetry run jupyter notebook` to start a jupyter notebook server.. This local environment is basically a python virtual environment. To correctly set up the interpreter in your IDE, use `poetry run which python` to see the path to the correct python executable.

## Examples

Expand All @@ -71,7 +71,7 @@ If you want to run notebooks on a remote cluster but access them on the browser

On the cluster, run:
```
jupyter notebook --no-browser --port=8889
poetry run jupyter notebook --no-browser --port=8889
```

On your local computer, you need to set up a forwarding that picks the flux of data from the cluster via a local port, and makes it available on another port as if the server was in the local machine:
Expand Down
17 changes: 4 additions & 13 deletions examples/benchmarks/ladle_furnace.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,7 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/giles/anaconda3/envs/tomopt/lib/python3.8/site-packages/tqdm/auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n"
]
}
],
"outputs": [],
"source": [
"import torch"
]
Expand Down Expand Up @@ -3544,9 +3535,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:tomopt]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-tomopt-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -3558,7 +3549,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
"version": "3.10.13"
},
"toc": {
"base_numbering": 1,
Expand Down
107 changes: 46 additions & 61 deletions examples/getting_started/00_Hello_World.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8141,9 +8141,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:tomopt]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-tomopt-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -8155,7 +8155,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
"version": "3.10.13"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:tomopt]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-tomopt-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1349,7 +1349,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
"version": "3.10.13"
},
"toc": {
"base_numbering": 1,
Expand Down
6 changes: 3 additions & 3 deletions examples/getting_started/03_fixed_budget_mode.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:tomopt]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-tomopt-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -516,7 +516,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
"version": "3.10.13"
},
"toc": {
"base_numbering": 1,
Expand Down

0 comments on commit 2f590ba

Please sign in to comment.