{"id":21715018,"url":"https://github.com/floswald/julia-bootcamp","last_synced_at":"2025-04-12T19:14:29.162Z","repository":{"id":142581055,"uuid":"454722745","full_name":"floswald/julia-bootcamp","owner":"floswald","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-18T14:38:07.000Z","size":4464,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T19:14:23.394Z","etag":null,"topics":["bootcamp","julia","julia-language"],"latest_commit_sha":null,"homepage":"https://floswald.github.io/julia-bootcamp/","language":"Julia","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/floswald.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":"2022-02-02T10:05:48.000Z","updated_at":"2025-02-18T14:05:09.000Z","dependencies_parsed_at":"2025-02-18T15:40:10.572Z","dependency_job_id":null,"html_url":"https://github.com/floswald/julia-bootcamp","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/floswald%2Fjulia-bootcamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floswald%2Fjulia-bootcamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floswald%2Fjulia-bootcamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floswald%2Fjulia-bootcamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floswald","download_url":"https://codeload.github.com/floswald/julia-bootcamp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618280,"owners_count":21134201,"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":["bootcamp","julia","julia-language"],"created_at":"2024-11-26T00:39:57.997Z","updated_at":"2025-04-12T19:14:29.154Z","avatar_url":"https://github.com/floswald.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Julia` Bootcamp (for Economists)     \n\n\u003cp align=\"center\"\u003e \u003ca href=\"https://floswald.github.io/julia-bootcamp/\"\u003e:balloon: \u003cb\u003eGo to online notebooks\u003c/b\u003e :balloon:\u003c/a\u003e\u003c/p\u003e\n\n\nThis is an 8-hours crash course to get going with the [julia computing language](https://julialang.org). \n\n\u003e It says in the title *for Economists*, but that's mainly because I am one myself, and people in the profession asked me to teach this course; That said, you don't need any specific economics knowledge for this course.\n\n## Organization\n\nWe have 8 blocks of one hour each. Each block will be interrupted several times along the way to check whether what I just said makes sense to you, and to allow you to formulate questions. \n\n\n## Material\n\nWe did the first session freestyle, in terminal and VScode (see below). then we switched to notebooks. \n\n\u003e Notice that the notebooks are visible online at [https://floswald.github.io/julia-bootcamp/](https://floswald.github.io/julia-bootcamp/). You will need those during the questions in class!\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://floswald.github.io/julia-bootcamp/\"\u003e:balloon: \u003cb\u003eGo to online notebooks\u003c/b\u003e :balloon:\u003c/a\u003e\u003c/p\u003e\n\n### Notebooks\n\nYou can either download the notebooks from the [website](https://floswald.github.io/julia-bootcamp/) to run locally, or you clone this repository - the notebooks are identical, so whatever you prefer.\n\n1. assigning variables\n1. arrays\n2. datatypes\n1. functions and programming constructs\n2. performance\n3. plotting\n4. interactive plotting and dashboards\n\n\n### Session 1\n\n* installing julia\n* installing vscode and julia extension\n  * *Optionally* in vscdoe, shift-cmd-p for command palette, then type *shell command* to put `code` onto your `PATH` such that you can start it from the command line.\n* *Optionally* customize the julia startup file at `~/.julia/config/startup.jl`\n  * I put my `startup.jl` [here](snippets/startup.jl) into this repository for you to copy to `~/.julia/config/startup.jl` on your computer if you want.\n  * It sets *sticky shell mode*: if you hit `;` in the julia REPL, it will switch to shell mode (so you are on your OS console). By default that switches back after your last shell command returns - not with *sticky* mode, where it will only switch back if you hit `backspace`.\n  * set vscode as standard editor: when you use the `@edit` macro for instance, it will open vscode to look at the source code.\n\n#### How to run julia\n\n* running julia as standalone app\n* running julia inside vscode\n* starting julia from the command line\n* important locations and directories, different julia versions, etc\n\n#### Working with the REPL\n\n* working with the REPL\n    * help mode: find `max` help and compute the maximum over numbers `3,5,10`\n    * help mode: find `ifelse` function and run `ifelse(3 \u003c 5, 3,5)`\n    * do `@edit max(3,5)` and look at source code\n    * println function hello world\n* running a file in vscode: [`01.jl`](snippets/01.jl)\n* `include` function: [`01.jl`](snippets/01.jl)\n* workflows for modules: https://docs.julialang.org/en/v1/manual/workflow-tips/#A-basic-editor/REPL-workflow\n* assigning a variable. standard, unicode, maths\n\n#### Julia Packages\n\n* What are packages? In words.\n* How to install? Whose package? Where from? \n* Different package versions and environments. the `Project.toml` file.\n* installing a package: distributions\n    * create file [`02.jl`](snippets/02.jl), say you want to use the Distributions package and create a normal distribution with `n = Normal(1.0,0.5)`. \n    * look at `?quantile` (last entry) and `?pdf` and finally compute the value of the pdf at the 0.95 quantile of your distribution `n`\n\n\n## Homeworks and More Material\n\nI have a more complete course, also more relevant for Economists, at [this website](https://floswald.github.io/NumericalMethods/). Maybe have a look there if you are looking for econ-specific applications. Another great place for such a search is by the way the [QuantEcon](https://julia.quantecon.org/intro.html) project by Perla, Sargent and Stachurski.\n\nI will not give you any homeworks, however, you may want to practice a bit more. I have several fully worked homeworks on my course website, which you could have a go at if you wanted.\n1. [Lockdown in a SIR model](https://floswald.github.io/NumericalMethods/hw1/)\n1. [Spatial epidemic model](https://floswald.github.io/NumericalMethods/hw2/)\n1. [Probit Estimator](https://floswald.github.io/NumericalMethods/hw3/)\n1. [Portfolio Choice Problem](https://floswald.github.io/NumericalMethods/hw5/)\n\nFinally, I'm quite fond of my julia implementation of @fediskhakov 's et al discrete choice EGM paper, so check it out at [https://github.com/floswald/DCEGM.jl](https://github.com/floswald/DCEGM.jl), in particular the [`MLine`](https://github.com/floswald/DCEGM.jl/blob/master/src/line.jl) data type which is really cool 😎.\n\n## Other Resources\n\nThere are too many things to cover. Let me try with a quick list:\n\n* https://fluxml.ai/\n* https://jump.dev/\n* https://makie.juliaplots.org/stable/ and https://lazarusa.github.io/BeautifulMakie/\n* https://turing.ml/stable/\n* https://julia.quantecon.org/intro.html\n* all free courses at https://juliaacademy.com/\n* [DataFrames.jl](https://dataframes.juliadata.org/stable/)\n* [Parallel computation guide by Jesus Fernandez-Villaverde and David Zarruk](https://www.sas.upenn.edu/~jesusfv/Guide_Parallel.pdf) and everything on Jesus' website.\n\n\n\n## Where did I teach this course?\n\n1. University of Barcelona. [Videos made with consent of participants.](https://youtube.com/playlist?list=PLs8aCCD_PbIz3Sliij8Qlv01HXEG2FWb-)\n2. Bocconi\n3. SciencesPo\n\n\n## Resources\n\nI used examples and got inspiration from several excellent tutorials out there to build this boot camp:\n\n* [Think Julia](https://benlauwens.github.io/ThinkJulia.jl/latest/book.html) by @benlauwens is fully comprehensive and *very complete* intro to julia, which I highly recommend.\n* [The Julia Express](http://bogumilkaminski.pl/files/julia_express.pdf) by @bkamins is a much condensed version - great for a quick start.\n* [From Zero to Hero](https://github.com/Datseris/Zero2Hero-JuliaWorkshop) by @datseris is a great tutorial series, bit more advanced but great insights for beginners as well.\n\nHave a look at the [dedicated section](https://julialang.org/learning/) on the julialang website for more great material!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloswald%2Fjulia-bootcamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloswald%2Fjulia-bootcamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloswald%2Fjulia-bootcamp/lists"}