Skip to content

Commit 2854d64

Browse files
committed
content/jupyter: Update for miniforge as a Python distribution
1 parent 4f921fa commit 2854d64

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

content/jupyter.ipynb

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,37 @@
4343
"source": [
4444
"## Getting started with Jupyter\n",
4545
"\n",
46-
"* Start JupyterLab: there are different ways. From the command line, activate your anaconda environment and run `jupyter-lab`. You can also start in from Anaconda Navigator.\n",
46+
"* Start JupyterLab: there are different ways, depending on how you installed it. See the [installation instructions](https://aaltoscicomp.github.io/python-for-scicomp/installation/). If JupyterLab isn't working yet, you have some time to try to follow the installation instructions now.\n",
47+
"\n",
48+
"```````{tabs}\n",
49+
"``````{group-tab} Miniforge\n",
50+
"This is the command line method we went though in our installation instructions.\n",
51+
"`````{tabs}\n",
52+
"````{group-tab} Linux / MacOS\n",
53+
"```console\n",
54+
"$ source ~/miniforge3/bin/activate\n",
55+
"$ conda activate python-for-scicomp\n",
56+
"$ jupyter-lab\n",
57+
"```\n",
58+
"````\n",
59+
"````{group-tab} Windows\n",
60+
"Start the Miniforge Prompt applicaiton first, then:\n",
61+
"```console\n",
62+
"$ conda activate python-for-scicomp\n",
63+
"$ jupyter-lab\n",
64+
"```\n",
65+
"````\n",
66+
"``````\n",
67+
"``````{group-tab} Anaconda\n",
68+
"If you install the full Anaconda distribution, start the Anaconda Navigator. Make sure the ``python-for-scicomp`` environment is selected and you can start JupyterLab.\n",
69+
"``````\n",
70+
"``````{group-tab} Other\n",
71+
"If you have installed Python and the workshop's requiremnts some other way, you hopefully know how to activate that Python and the Python for SciComp software environment and start JupyterLab.\n",
72+
"\n",
73+
"If not, see the [installation instructions](https://aaltoscicomp.github.io/python-for-scicomp/installation/).\n",
74+
"``````\n",
75+
"```````\n",
76+
"\n",
4777
"\n",
4878
"For practical purposes, JupyterLab is an integrated development environment that combines file browsing, notebooks, and code editing. There are many extensions that let you do whatever you may need."
4979
]
@@ -64,9 +94,11 @@
6494
"## Exercises 1\n",
6595
"```{challenge} Exercises: Jupyter-1\n",
6696
"\n",
97+
" If you aren't set up with JupyterLab yet or these things don't work, use this time to see the [installation instructions](https://aaltoscicomp.github.io/python-for-scicomp/installation/) and ask us any questions you may have.\n",
98+
"\n",
6799
" 1. Start Jupyter in the directory you want to use for this course.\n",
68-
" - If you are starting from the navigator, change to the directory you want to use.\n",
69-
" - If you are starting from the command line, you should navigate to the directory you want to use first.\n",
100+
" - If you are using Miniforge from the command line, you can navigate with `cd` to a directory of your choice.\n",
101+
" - If you are starting from the Anaconda Navigator, change to the directory you want to use.\n",
70102
"\n",
71103
" 2. Create a Python 3 notebook file. Save it. In the next section, you will add stuff to it.\n",
72104
"\n",
@@ -431,7 +463,7 @@
431463
"name": "python",
432464
"nbconvert_exporter": "python",
433465
"pygments_lexer": "ipython3",
434-
"version": "3.10.6"
466+
"version": "3.12.7"
435467
}
436468
},
437469
"nbformat": 4,

0 commit comments

Comments
 (0)