airnandez / lsst-jupyter-kernel Goto Github PK
View Code? Open in Web Editor NEWJupyterLab kernel configuration for the LSST science pipelines
License: Other
JupyterLab kernel configuration for the LSST science pipelines
License: Other
Hi, is it possible to have a simular kernel for lsst_sims ?
Many thanks.
Sylvie
This is the record of an issue found using this kernel with an installation of lsst_distrib
made with lsstinstall
(see announcement here).
The issue is that the script to load the LSST environment loadLSST.bash
generated by lsstinstall
accepts as a command line argument the name of the conda environment to activate. Here is the relevant line of loadLSST.bash
:
...
export LSST_CONDA_ENV_NAME=${1:-${LSST_CONDA_ENV_NAME:-lsst-scipipe-0.7.0}}
...
When this script is called from another shell script, for instance:
#!/bin/bash
# This script expects some command line arguments arg1 arg2 arg3
...
cd /path/to/my/release
source loadLSST.bash
...
Since loadLSST.bash
is sourced, it will receive and interpret the first command line argument (e.g. arg1
in the example above) passed to the caller script as if it was the name of the conda environment to activate. This feature makes this kernel break since it expects other arguments passed by Jupyter, which should not be passed to loadLSST.bash
.
The fix is to save and consume all the arguments so that when loadLSST.bash
is called there is no remaining arguments to the caller shell script. The saved arguments are restored afterwards and passed to the kernel launcher.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.