Skip to content

Commit

Permalink
Merge pull request #1 from gsbdarc/jeffbranch
Browse files Browse the repository at this point in the history
Fixed venv
  • Loading branch information
natalya-patrikeeva authored Sep 6, 2024
2 parents 60eeb10 + ffc3dad commit cc71a93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/2_python_venv.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 2. Python Virtual Environments
layout: page
nav_order: 2
updateDate: 2024-08-29
updateDate: 2024-09-04
---


Expand Down Expand Up @@ -103,7 +103,7 @@ Example
(venv) $ python -m ipykernel install --user --name=venv
```

![](../assets/images/jupyter_venv.png)
![](assets/images/jupyter_venv.png)

## Sharing the Environment

Expand All @@ -114,7 +114,7 @@ Environments can get quite large and take up lots of space depending on the proj
```
This will be different depending on which packages you install and can help users run the code you developed using that environment.

![](../assets/images/requirements.png)
![](assets/images/requirements.png)

To then replicate an environment you need to perform the following steps:

Expand All @@ -135,16 +135,17 @@ $ deactivate
```

### Removing the Virtual Environment
If you would like to delete the previously created virtual enviroment, simply delete the environment directory since `venv` environment is essentially a directory containing files and folders.
If you created a Jupyter kernel you will first need to remove that with the following command from your home from **within** your virtual environment

```
$ rm -rf venv
```bash
(venv) $ jupyter kernelspec uninstall venv
```

If you created a Jupyter kernel you will also need to remove that with the following command from your home

```bash
$ jupyter kernelspec uninstall venv
If you would like to delete the previously created virtual enviroment, simply delete the environment directory since `venv` environment is essentially a directory containing files and folders.

```
$ rm -rf venv
```

# Exercise
Expand Down
Binary file added docs/assets/images/jupyter_venv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/requirements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cc71a93

Please sign in to comment.