GithubHelp home page GithubHelp logo

gtrunsec / bat-julia-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bat/bat-julia-tutorial

0.0 2.0 0.0 617 KB

BAT/Julia tutorial for DESY Statistics School

HTML 94.55% Jupyter Notebook 5.19% Shell 0.26%

bat-julia-tutorial's Introduction

BAT/Julia Tutorial at Advanced School on Statistics in HEP, DESY, Oct. 2019

Welcome to the BAT/Julia tutorial.

Software installation

Before beginning this tutorial, please install ensure you have Jupyter, Julia and BAT.jl installed and everything is set up correctly.

Running on your laptop

Follow the installation instructions in the BAT.jl documentation.

You will find installers for Jupyter, Julia, source-code editors and other software on your tutorial USB pen-drive.

Running on CERN SWAN

Using a few tricks, it's possibly to install Julia on CERN SWAN and run BAT.jl there.

Note: For the purposes of this tutorial, installing and running Julia on your laptop will likely be more convenient and responsive.

Warning: The following procedure seems to work, but has not been extensively tested - use at your own risk!

Start a SWAN environment with software stack "96 Python3". Then source the script cern-swan-init-julia.sh within a SWAN terminal session (source ./cern-swan-init-julia.sh). This should install Julia into "$HOME/sw/julia" and register the IJulia kernel with the SWAN Jupyter instance.

Afterwards, you should be able to run the command julia in the terminal session and install all Julia packages required for this tutorial:

julia> using Pkg
julia> pkg"add BAT ArraysOfArrays Distributions ElasticArrays IntervalSets Parameters Plots ValueShapes StatsBase Tables TypedTables HDF5" 

See the BAT.jl documentation for details.

Reload the SWAN "My Projects" web-page before starting Julia notebooks.

Running the tutorial

Please clone the tutorial Git repository

git clone https://github.com/bat/bat-julia-tutorial.git

(If you're using SWAN, ensure that "bat-julia-tutorial" ends up in the "SWAN_projects" directory. It's easiest to use the "Download Project from git" function on the "My Projects" web-page).

Start a jupyter server using either

jupyter lab

or

jupyter notebook

depending on which Jupyter UI style you prefer.

Start the notebook "Exercise-1.ipynb" to begin the tutorial.

Learning Julia

Due to the format of the tutorial, you should (hopefully) not need to consult documentation frequently. Still, here are a few resources that should help you get started with the Julia language quickly:

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.