Skip to content

Commit bd3596a

Browse files
authored
Merge pull request #58 from balajialg/edits_shared_conda
Fix few format errors
2 parents feea399 + 20b9bd5 commit bd3596a

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

workflows/shared-conda-environment.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
We are excited to announce that, beginning in Fall 2025, we will introduce the ability to create a shared Conda environment for instructors in selected hubs. This feature will allow instructors to create a custom kernel, install the desired packages, and have those changes automatically reflected in the student kernel. This streamlined process provides autonomy to instructors in making quick changes to the instructional environment.
44

5-
If you are interested in piloting the shared Conda environment in your hub, we encourage you to contact the DataHub team via [GitHub](https://github.com/berkeley-dsep-infra/datahub/issues/new?template=featurerequest.md] for more information and to express your interest.
5+
If you are interested in piloting the shared Conda environment in your hub, we encourage you to contact the DataHub team via [GitHub](https://github.com/berkeley-dsep-infra/datahub/issues/new?template=featurerequest.md) for more information and to express your interest.
66

77

88
## Steps for Creating and Registering a Shared Conda Environment in Jupyter
@@ -19,13 +19,13 @@ If you are interested in piloting the shared Conda environment in your hub, we e
1919

2020
- Open a terminal from Jupyterlab, run
2121

22-
```{bash}
22+
```bash
2323
conda init
2424
```
2525

2626
If you see the “No action taken” error, run the following
2727

28-
```{bash}
28+
```bash
2929
source ~/.bashrc
3030
```
3131

@@ -35,40 +35,40 @@ source ~/.bashrc
3535
You can check if notebook exists by running conda env list
3636
```
3737

38-
```{bash}
38+
```bash
3939
conda list --explicit --prefix /srv/conda/envs/notebook > base-env.txt
4040
conda create --prefix /srv/conda/envs/shared_conda --file base-env.txt
4141
```
4242

4343
Create a conda environment from the ‘base’ conda environment
4444

45-
```{bash}
45+
```bash
4646
conda list --explicit --prefix /srv/conda > base-env.txt
4747
conda create --prefix /srv/conda/envs/shared_conda --file base-env.txt
4848
```
4949

5050
- Activate the new environment
51-
```{bash}
51+
```bash
5252
conda activate /srv/conda/envs/shared_conda
5353
```
5454

5555
- Install extra packages you need
5656

57-
```{bash}
57+
```bash
5858
conda install numpy pandas -y
5959
```
6060

6161
You may install any additional packages needed for the course.
6262

6363
- Install ipykernel if not already exists to enable Jupyter integration
6464

65-
```{bash}
65+
```bash
6666
conda install ipykernel -y
6767
```
6868

6969
- Register the environment as a Jupyter kernel. This step allows the environment to show up in the Jupyter Notebook interface:
7070

71-
```{bash}
71+
```bash
7272
python -m ipykernel install \
7373
--name shared_conda \
7474
--display-name "Python (<bcourse_id or whatever you want>)" \
@@ -81,22 +81,22 @@ python -m ipykernel install \
8181

8282
- Validate that the kernel was successfully registered
8383

84-
```{bash}
84+
```bash
8585
jupyter kernelspec list
8686
```
8787

8888
This will display all available Jupyter kernels.
8989

9090
- Deactivate the environment. Once setup is complete
9191

92-
```{bash}
92+
```bash
9393
conda deactivate
9494
```
9595

9696
## Steps for Removing a Conda Environment
9797

9898
In case you want to remove the conda environment, run the following
9999

100-
```{bash}
100+
```bash
101101
conda env remove --prefix /srv/conda/envs/shared_conda
102102
```

0 commit comments

Comments
 (0)