Git Product home page Git Product logo

lsst-jupyter-kernel's Issues

lsst_sims

Hi, is it possible to have a simular kernel for lsst_sims ?

Many thanks.

Sylvie

Kernel breaks to setup lsst_distrib environment installed via lsstinstall

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.