Skip to content

Commit 14ca6ec

Browse files
committed
feat(ENV:vre-swan) add kernel setup for extension
1 parent 613ea63 commit 14ca6ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vre-swan-cern/scripts/before-notebook.d/13_rucio.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ then
6262
_log "Created directory /home/${NB_USER}/.ipython/profile_default"
6363

6464
# Configure the iPython kernel to load the Rucio JupyterLab extension.
65-
echo "c.IPKernelApp.extensions = ['rucio_jupyterlab.kernels.ipython']" >> /home/${NB_USER}/.ipython/profile_default/ipython_kernel_config.py
65+
IPYTHON_KERNEL_CONFIG=$IPYTHONDIR/profile_default/ipython_kernel_config.py
66+
echo -e "c.InteractiveShellApp.extensions.append('rucio_jupyterlab.kernels.ipython')\n$( [ -f ${IPYTHON_KERNEL_CONFIG} ] && cat ${IPYTHON_KERNEL_CONFIG})" >> ${IPYTHON_KERNEL_CONFIG}
6667

6768
_log "iPython kernel for Rucio JupyterLab set up successfully."
6869

0 commit comments

Comments
 (0)