Skip to content

Commit 5829b53

Browse files
Soap2GPMax5
authored andcommitted
feat: Rucio kernel extension
Adopted the same strategy as the spark extension
1 parent 64f2b4e commit 5829b53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)