GithubHelp home page GithubHelp logo

mdmorris / coffeajerc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cms-jet/coffeajerc

0.0 1.0 2.0 2.72 MB

Jet energy resolution and corrections with NANAOD and columnar analysis based on Coffea.

Jupyter Notebook 100.00%

coffeajerc's Introduction

CoffeaJERC Tutorial - HATS 2021

Sign into ACCRE:

https://jupyter.accre.vanderbilt.edu/

Open a terminal and get a voms ticket

voms-proxy-init -voms cms

Make a new directory for the HATS tutorial

mkdir CoffeaJERCHATS
cd CoffeaJERCHATS

Clone this repository

git clone https://github.com/mdmorris/CoffeaJERC
cd CoffeaJERC

Run the setup-environment.ipynb notebook

Open the L2L3_profiles_demo_HATS21.ipynb notebook and change the kernel to coffea-jerc

Run L2L3_profiles_demo_HATS21.ipynb

CoffeaJERC Tutorial - LPC

Run the notebook coffea-dask-join.ipynb on the LPC

ssh -L localhost:8888:localhost:8888  <user>@cmslpc-sl7.fnal.gov

Then get a voms ticket:

voms-proxy-init -voms cms

Create a directory in your nobackup area to run this exercise:

mkdir ~/nobackup/CoffeaJERC/
cd ~/nobackup/CoffeaJERC/

We will then run the following commands to set up the lpc_dask and Coffea environment

  1. curl -OL https://raw.githubusercontent.com/CoffeaTeam/lpcjobqueue/main/bootstrap.sh

  2. bash bootstrap.sh

  3. ./shell

  4. At this point you will be in your singularity container. Exit the singularity container with the command exit

  5. cp -r /uscms_data/d3/ncsmith/dazsle/boostedhiggs/.local/share/jupyter/kernels .local/share/jupyter/

  6. git clone https://github.com/mdmorris/CoffeaJERC/

  7. ./shell

  8. Now you will be in your singularity container again. Open a jupyter notebook with the command:

jupyter notebook --ip 0.0.0.0 --no-browser --port=8888

The output from all of these commands should look similar to the output below:

$ curl -OL https://raw.githubusercontent.com/CoffeaTeam/lpcjobqueue/main/bootstrap.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1312  100  1312    0     0   3318      0 --:--:-- --:--:-- --:--:--  3321

$ bash bootstrap.sh
Wrote shell and .bashrc to current directory. You can delete this file. Run ./shell to start the singularity shell

$ ./shell
Installing shallow virtual environment in /srv/.env...
Installed kernelspec python3 in /srv/.local/share/jupyter/kernels/python3
done.

Singularity> quit

$ cp -r /uscms_data/d3/ncsmith/dazsle/boostedhiggs/.local/share/jupyter/kernels .local/share/jupyter/

$ ./shell

Singularity> jupyter notebook --ip 0.0.0.0 --no-browser --port=8888

[C 11:23:05.656 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///srv/.local/share/jupyter/runtime/nbserver-6621-open.html
    Or copy and paste one of these URLs:
        http://cmslpc169.fnal.gov:8888/?token=cd3b09ea36536befc848b0ee1647c3a21d799ef2adf2983c
     or http://127.0.0.1:8888/?token=cd3b09ea36536befc848b0ee1647c3a21d799ef2adf2983c


Copy the url from your output:

http://127.0.0.1:8888/?token=cd3b09ea36536befc848b0ee1647c3a21d799ef2adf2983c

and enter it in a browser.

Run the notebook coffea-dask-join.ipynb

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.