Julia

Download and Install Julia: If you haven’t already, download Julia from the official website and install it on your computer. (Mac users: Julia is also available via MacPorts and Homebrew.)

You can start Julia by typing julia in the Terminal.

Julia in Visual Studio Code

Julia only runs in the Terminal. For Windows and Mac users Visual Studio Code with Julia for Visual Studio Code make up a nice developer environment. 

Julia in Jupyter Notebooks

Using Jupyter Notebooks with Julia is a fantastic way to combine code, formatted text, math, and multimedia in a single document. Here’s how you can get started:

1. Installation Steps
  1. Install Julia.
  2. Add IJulia Package: Open the Julia REPL (Read-Eval-Print Loop) and run the following commands:
    using Pkg; Pkg.add("IJulia")
    
    This will install the IJulia package, which integrates Julia with Jupyter.
2. Launching Jupyter with Julia
  • From the Julia REPL: After installing IJulia, you can launch Jupyter by running:
    using IJulia; notebook()
    
    This command will open Jupyter locally in your default web browser with Julia as an available kernel.
3. Creating and Running Notebooks
  • Create a New Notebook: In the Jupyter interface, click on “New” and select “Julia” from the dropdown menu to create a new notebook.
  • Write and Execute Code: You can now write Julia code in the cells and execute them by pressing Shift + Enter. For example:
    println("Hello, Julia!").

Some additional links

Getting started with Julia

https://docs.julialang.org/en/v1/manual/getting-started/

Julia TDA

https://github.com/JuliaTDA

https://github.com/wildart/TDA.jl

Notable differences with Python

https://docs.julialang.org/en/v1/manual/noteworthy-differences/#Noteworthy-differences-from-Python

Jupyter Notebooks

https://jupyter.org/try

https://jupyter.org/install

Последна промена: понеделник, 28 октомври 2024, 05:54