Giter Site home page Giter Site logo

pylcio's Introduction

Local

If you want to use ROOT:

docker run -it --rm -v $PWD/pyLCIO/examples:/home/ilc/data -p 8888:8888 ilcsoft/py3lcio bash

If you wish to use matplotlib:

docker run -it --rm -v $PWD/pyLCIO/examples:/home/ilc/data -p 8888:8888 ilcsoft/py3lcio:lcio-15-04 bash

this will spin up a container with port mappings to your local PC as well as a local path mounted on to the container.

cd LCIO; source setup.sh; cd .. 
conda activate root_env ## if you wish to use matplotlib instead of ROOT
jupyter notebook --port=8888 --ip=0.0.0.0 --allow-root 

Click the link from your screen which starts with "http://127.0.0.1:8888/?token=XXxXXXXX...". Then you should see the notebook. You create a notebook from the upper-right cornet with 'python 3' kernel and then type import pyLCIO

NAF

You can run ilcsoft/py3lcio:lcio-15-04 in NAF via singularity. But first it's practical to do

export SINGULARITY_TMPDIR=/nfs/dust/ilc/user/<name>/container/tmp/
export SINGULARITY_CACHEDIR=/nfs/dust/ilc/user/<name>/container/cache/

then

git clone https://github.com/EnginEren/pyLCIO.git
cd pyLCIO
singularity shell -H $PWD --bind $(pwd):/home/ilc/data docker://ilcsoft/py3lcio:lcio-15-04 bash
cd /home/ilc/LCIO; source setup.sh; cd .. 
conda activate root_env 

note: if you are activating conda env, it will ask you to initilize the shell. conda init bash. This is something you do it once.

jupyter notebook --port=8888 --ip=0.0.0.0 --allow-root 

If you're not in DESY network, you need to tunnel via ssh. Follow official DESY-IT page here.

After that, you can copy notebook link to your browser and access it. Well done!

pylcio's People

Contributors

engineren avatar

Stargazers

 avatar

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.