From d8a764ea51986a88aa428d630c788f434843d82f Mon Sep 17 00:00:00 2001
From: Natasha Pavlovikj <npavlovikj2@unl.edu>
Date: Tue, 5 Jul 2022 17:18:30 -0500
Subject: [PATCH] Modify ipykernel to append PATH

---
 .../user_software/using_anaconda_package_manager.md         | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/content/applications/user_software/using_anaconda_package_manager.md b/content/applications/user_software/using_anaconda_package_manager.md
index 4b388e92..e920234f 100644
--- a/content/applications/user_software/using_anaconda_package_manager.md
+++ b/content/applications/user_software/using_anaconda_package_manager.md
@@ -273,9 +273,13 @@ Jupyter Notebook. To do so, follow the steps below, replacing
         conda install ipykernel
 
         # Install the kernel specification
-        python -m ipykernel install --user --name "$CONDA_DEFAULT_ENV" --display-name "Python ($CONDA_DEFAULT_ENV)"
+        python -m ipykernel install --user --name "$CONDA_DEFAULT_ENV" --display-name "Python ($CONDA_DEFAULT_ENV)" --env PATH $PATH
         {{< /highlight >}}
 
+{{% notice note %}}
+If needed, other variables can be set via additional `--env` arguments, e.g., `python -m ipykernel install --user --name "$CONDA_DEFAULT_ENV" --display-name "Python ($CONDA_DEFAULT_ENV)" --env PATH $PATH --env VAR value`, where `VAR` and `value` are the name and the value of the variable respectively.
+{{% /notice %}}
+
     2.  For an **R** conda environment, install the jupyter\_client and
         IRkernel packages, and then the kernel specification:
 
-- 
GitLab