maltezfaria / ANN203

Notes and homework for ANN203 at ENSTA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ANN203 (2024)

This repo contains the homework for the ANN203 course.

Getting started

  • Install Julia. I suggest using Juliaup for an easier version control.
  • Install Pluto
  • Open a terminal and enter the Julia REPL by typing julia
  • Enter the following lines to open a browser with Pluto.jl
using Pluto
Pluto.run()

You should see something like this on your web browser:

GitHub Logo

The last step is to load the homework assignment. Either download the homework and enter the path to the downloaded file in Pluto, or copy and paste the following URL on the Open a notebook window and press Open:

https://github.com/maltezfaria/ANN203/blob/main/ANN203_tp0.jl

That should load the notebook for the TP0 in a safe preview mode. To execute the content of the notebook, you will need to give Pluto permission to run some code.

To Julia from Matlab

If you are familiar with Matlab, it should not be too difficult to get started with Julia. A lot of the syntax looks familiar, and Julia's standard library comes with a LinearAlgebra package implementing many of the things that you love about Matlab (e.g. the magical backslash \ operator). Here is a list of noteworthy differences that may help you get started translating code.

Workflows and Pluto.jl

As you will notice in your first assignment, the homework for this class is available both in the form of a static HTML file (which you can open in any browser) and in the form of a Pluto notebook.

Pluto provides a notebook-like environment for combining Julia with pretty text that can easily be rendered on a website, and you can think of it as a web-based workflow for developing code (similar to e.g. Jupyter notebooks if you have heard of those). While in general I don't recommend using Pluto for coding anything long or complex, most of the code you will write in this class is simple enough that using Pluto as a web-based IDE may be a viable option. My suggestion is to give it a try to see if it fits you.

Should you find yourself hating Pluto.jl (and missing matlab), I suggest you try Visual Studio Code with its julia extension to have an out-of-the-box experience as similar to matlab as possible. Keep in mind that I still expect you to submit your code as a Pluto notebook, but you can always just copy and paste the code to Pluto after you get it to work.

About

Notes and homework for ANN203 at ENSTA


Languages

Language:Julia 100.0%