We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f2b4e commit 5829b53Copy full SHA for 5829b53
swan-cern/scripts/before-notebook.d/13_rucio.sh
@@ -62,7 +62,8 @@ then
62
_log "Created directory /home/${NB_USER}/.ipython/profile_default"
63
64
# 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
+ 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}
67
68
_log "iPython kernel for Rucio JupyterLab set up successfully."
69
0 commit comments