johndehart / SELab

Systems Engineering Laboratory
MIT License
0 stars 0 forks source link

Creating a working kernel in TLJH - User #2

Open johndehart opened 1 year ago

johndehart commented 1 year ago

Notes on how to create a user conda environment is working (or not...). See --> https://stackoverflow.com/questions/58068818/how-to-use-jupyter-notebooks-in-a-conda-environment

  1. conda create -n test python=3.10
  2. conda init bash (restart term)
  3. conda install ipykernel
  4. ipython kernel install --user --name=test_evn_kernel

So this works in a user environment and shows up in the SoS dropdown. Lets do a little test...

Installing Dakota with python=3.10 resulted in errors. I'll create another issue.

johndehart commented 1 year ago

How to remove an environment and kernel: --> https://stackoverflow.com/questions/42635310/remove-kernel-on-jupyter-notebook

To remove a Jupyter kernel and the associated Conda environment, follow these steps:

Remove Jupyter Kernel

  1. List existing kernels to identify the one you want to remove:
    jupyter kernelspec list
  2. Remove the kernel:
    jupyter kernelspec uninstall <kernel_name>

Remove Conda Environment

  1. List existing Conda environments:
    conda env list

    or

    conda info --envs
  2. Remove the environment:
    conda env remove --name <env_name>

Make sure to replace <kernel_name> and <env_name> with the actual names of the kernel and environment you want to remove. Perform these operations carefully to avoid unintended deletions.