See how to install the developer tools and related resources to complete the examples.
- [Instructor] To set up your Julia development environment, let's start by downloading and installing Julia itself. The Julialang.org website has a download section where you can get the latest version of Julia for your operating system. So I'll go ahead and click on the Download link and you can see that there are versions for Windows, Mac, some Linux binaries, and you can even get the source code if you want. So I'm using a Mac, so I have downloaded that particular version and when you download the installer, go ahead and run it for your operating system and that will get Julia installed. Now if you're using a different operating system than I am, just follow the instructions on the site for your OS and you can see, for example, that for Windows if you click on the Help link that will take you to a platform specific instructions page for how to get Julia installed on your computer. So, I've run the installer already and I have Julia installed, but I want to be able to run Julia from the command line, but my application folder is not a part of the path environment variable. So let me show you what I mean. I'm going to start the terminal and when I type the command Julia, you can see that I'm getting an error. It says that the command is not found and that's because my environment path does not point to the Julia application. Now there's a couple of ways you can fix this, but what I'm going to do is make a symbolic link to the Julia app and put the link file in a place where my path currently points, which in this case is going to be usr/local/bin. You can do the same thing on Linux if you need to and on Windows, the installer should take care of the path variable for you, but if it doesn't you can refer to the platform specific instructions on how to fix that. So to make the symbolic link on my Mac, here in my terminal I'm going to type sudo and then the command for making the link is ln and I'm going to make a symbolic link, so that's -s. Then I have to point to the Julia application and that is in my Applications folder and then there's the Julia app and the actual executable is inside the Contents/Resources/julia and then bin and then the app name is Julia and then I'm going to create the symbolic link inside /usr/local/bin and I'll just name the link Julia. And then I'm asked for my password so I'll put that in and now it's been created. So now watch what happens when I type the Julia command. You can see that Julia starts up and we're using Version 1.1.1 here. All right, once you've done this you need to make sure that you have your favorite text editor ready to go. So two of my favorites are Visual Studio Code and Sublime Text. Now if you're using a different editor, that's fine. It doesn't really matter since we're just going to be editing text files and we'll be executing the code from the terminal window. After you download and install Julia, put the Exercise Files somewhere on your computer where they will be easy to access. So I put the Exercise Files here on my desktop, but that's not required. You can put yours wherever you like. So once you have all these pieces in place, it's time to start the course.
- Using the Julia REPL tool
- Differences between Julia and other languages
- Variables and data types
- Numbers in Julia
- Defining and operating on strings
- Using built-in functions in Julia
- Conditional statements
- Using array functions
- String processing