Skip to content

Commit

Permalink
added demo notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Feb 5, 2024
1 parent 98f8e37 commit 1ad42a1
Show file tree
Hide file tree
Showing 3 changed files with 1,503 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
To use this example notebook, create a spack environment and
install Bedrock with Python support as follows.

```
spack env create my-bedrock-env
spack env activate my-bedrock-env
spack add mochi-bedrock+python
spack install
```

Then, with the `my-bedrock-env` spack environment activated,
create a Python virtual environment as follows.

```
python -m venv my-bedrock-env
source my-bedrock-env/bin/activate
python -m pip install -r requirements.txt
```

Finally, start Jupyterlab as follows.

```
jupyter notebook --ip 0.0.0.0 --port 8888 --no-browser
```

You will be able to connect to the notebook at the URL
displayed by jupyter on your terminal.
Loading

0 comments on commit 1ad42a1

Please sign in to comment.