{"id":22144710,"url":"https://github.com/bat/bat-julia-tutorial","last_synced_at":"2025-04-10T13:34:54.732Z","repository":{"id":78965103,"uuid":"215790459","full_name":"bat/bat-julia-tutorial","owner":"bat","description":"BAT/Julia tutorial for DESY Statistics School","archived":false,"fork":false,"pushed_at":"2019-12-20T17:07:33.000Z","size":617,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-24T12:19:07.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-17T12:45:54.000Z","updated_at":"2024-04-09T12:12:47.000Z","dependencies_parsed_at":"2023-03-27T13:45:25.496Z","dependency_job_id":null,"html_url":"https://github.com/bat/bat-julia-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bat%2Fbat-julia-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bat%2Fbat-julia-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bat%2Fbat-julia-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bat%2Fbat-julia-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bat","download_url":"https://codeload.github.com/bat/bat-julia-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225873,"owners_count":21068079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T22:30:48.379Z","updated_at":"2025-04-10T13:34:54.677Z","avatar_url":"https://github.com/bat.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BAT/Julia Tutorial at Advanced School on Statistics in HEP, DESY, Oct. 2019\n\nWelcome to the BAT/Julia tutorial.\n\n\n## Software installation\n\nBefore beginning this tutorial, please install ensure you have Jupyter, Julia and BAT.jl installed and everything is set up correctly.\n\n\n### Running on your laptop\n\nFollow the [installation instructions](https://bat.github.io/BAT.jl/stable/installation/) in the BAT.jl documentation.\n\nYou will find installers for Jupyter, Julia, source-code editors and other software on your tutorial USB pen-drive.\n\n\n### Running on CERN SWAN\n\nUsing a few tricks, it's possibly to install Julia on [CERN SWAN](https://swan.cern.ch) and run BAT.jl there.\n\nNote: For the purposes of this tutorial, installing and running Julia on your laptop will likely be more convenient and responsive.\n\nWarning: The following procedure seems to work, but has not been extensively tested - use at your own risk!\n\nStart a SWAN environment with software stack \"96 Python3\". Then source the script [cern-swan-init-julia.sh](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. \n\nAfterwards, you should be able to run the command `julia` in the terminal session and install all Julia packages required for this tutorial:\n\n    julia\u003e using Pkg\n    julia\u003e pkg\"add BAT ArraysOfArrays Distributions ElasticArrays IntervalSets Parameters Plots ValueShapes StatsBase Tables TypedTables HDF5\" \n\nSee the [BAT.jl documentation](https://bat.github.io/BAT.jl/stable/installation/#Installing-BAT.jl-and-related-Julia-packages-1) for details.\n\nReload the SWAN \"My Projects\" web-page before starting Julia notebooks.\n\n\n## Running the tutorial\n\nPlease clone the tutorial Git repository\n\n    git clone https://github.com/bat/bat-julia-tutorial.git\n\n(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).\n\nStart a jupyter server using either\n\n    jupyter lab\n\nor\n\n    jupyter notebook\n\ndepending on which Jupyter UI style you prefer.\n\nStart the notebook \"Exercise-1.ipynb\" to begin the tutorial.\n\n\n## Learning Julia\n\nDue 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:\n\n* The [\"MATLAB–Python–Julia cheatsheet\"](https://cheatsheets.quantecon.org/) show MATLAB, Python and Julia code for common operations in direct comparison.\n\n* [\"The Fast Track to Julia\"](https://juliadocs.github.io/Julia-Cheat-Sheet/) is a convenient online cheatsheet for quick reference.\n\n* The official [Julia language documentation](https://docs.julialang.org/en/v1/).\n\n* [\"Think Julia\"](https://benlauwens.github.io/ThinkJulia.jl/latest/book.html) is a good, detailed online book about the Julia language.\n\n* The Julia homepage has a [large section with introductory material](https://julialang.org/learning/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbat%2Fbat-julia-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbat%2Fbat-julia-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbat%2Fbat-julia-tutorial/lists"}