From 6ea8b8d0f5939996d23453bf7086555d0b8c1ffb Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Fri, 4 Nov 2022 11:59:13 +0100 Subject: [PATCH] Enable easier install in environments A small tweak that will allow installing in a conda/mamba environments. Eg in a jupyter notebook (as root): ```sh mamba create -n c --yes pip ipykernel ipywidgets "${CONDA_DIR}/envs/c/bin/python" -m pip install --no-cache-dir install jupyter-c-kernel "${CONDA_DIR}/envs/c/bin/install_c_kernel" --user ``` --- jupyter_c_kernel/install_c_kernel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_c_kernel/install_c_kernel b/jupyter_c_kernel/install_c_kernel index fcd009d..35ad4f2 100644 --- a/jupyter_c_kernel/install_c_kernel +++ b/jupyter_c_kernel/install_c_kernel @@ -10,7 +10,7 @@ from IPython.utils.tempdir import TemporaryDirectory kernel_json = { "argv": [ - "python3", + sys.executable, "-m", "jupyter_c_kernel", "-f",