Skip to content

Commit

Permalink
Merge pull request #771 from MoeRichert-USDA/update-20-ml-intro
Browse files Browse the repository at this point in the history
update spacing
  • Loading branch information
MoeRichert-USDA authored Nov 20, 2024
2 parents bebe880 + 7a00690 commit 1f1aaee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sn_collections/_workshops/2024-ai-user-forum/20-a-ml-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,32 @@ Steps to prepare for the tutorial:

{:.copy-code}
```bash
srun --reservation=forum -A scinet_workshop1 -t 00:30:00 -n 1 --mem 8G --pty bash
```
srun --reservation=forum -A scinet_workshop1 -t 00:30:00 -n 1 --mem 8G --pty bash
```

1. **Create and/or update your workshop working directory** and copy the tutorial materials into it by running the following commands. Note: you do not have to edit the commands with your username as it will be determined by the `$USER` variable.

{:.copy-code}
```bash
mkdir -p /90daydata/shared/$USER/intro_ml
cd /90daydata/shared/$USER/intro_ml
cp -r /project/ai_forum/intro_ml/intro_ml.ipynb .
```
mkdir -p /90daydata/shared/$USER/intro_ml
cd /90daydata/shared/$USER/intro_ml
cp -r /project/ai_forum/intro_ml/intro_ml.ipynb .
```

1. **Setup the kernel for JupyterLab.** You will create a kernel called *intro_ml_env* to access from JupyterLab Server. Run the following commands to activate the workshop's virtual environment and create a new kernelspec from it:

{:.copy-code}
```bash
source /project/ai_forum/intro_ml/intro_ml_env/bin/activate
ipython kernel install --name "intro_ml_env" --user
```
source /project/ai_forum/intro_ml/intro_ml_env/bin/activate
ipython kernel install --name "intro_ml_env" --user
```

1. **Stop the interactive job** on the compute node by running the command:

{:.copy-code}
```bash
exit
```
exit
```

1. **Launch a JupyterLab Server session.** Under the *Interactive Apps* menu, select *JupyterLab Server*. Specify the following input values on the page:

Expand Down

0 comments on commit 1f1aaee

Please sign in to comment.