If you don't yet have an account on the Code Server, please follow the instructions in the setup guide.
Logging into the Code Server will immediately launch you into a personal JupyterLab instance for you to use. Your files will persist when you log in and out, and you also have limited terminal access. Use the icons provided in the Launch tab to create a Julia console or Julia notebook for you to work with.
If you ever need to change your password, visit this link after you've logged in. If you're locked out of the code server, just email firstname.lastname@example.org, and we'll help you regain access to your account.
To write Julia on the server, you're welcome to write code in notebooks, but you can also write Julia (.jl) files by creating a text file in the launcher and renaming it to
<filename>.jl. JupyterLab will automatically recognize you are editing a Julia file and add appropriate syntax highlighting.
To run a Julia (.jl) file, you'll need to open a terminal from the launcher and type
Unfortunately, without using the Juno IDE in a local development environment, you'll have to debug using tactical print statements. You're always welcome to email the instructors for code help, and we can visit your code on the code server.
To launch the Julia REPL, you can open a terminal and type
julia. From there, you can install and use packages as you normally would, and you can evaluate Julia statements as in the console view. The Julia REPL is a bit like the JupyterLab-provided console tab.
Packages on the code server are installed for you into a global environment. If you'd like a package that isn't currently installed, just email us at email@example.com, and we'll install it for you.
Occasionally, you may receive this error on the code server if you're trying to use a globally registered package that you haven't loaded in personally yet.
using Primes ArgumentError: Package Primes [27ebfcd6-29c5-5fa9-bf4b-fb8fc14df3ae] is required but does not seem to be installed: - Run `Pkg.instantiate()` to install all recorded dependencies.
To fix this issue, run the following command anywhere you can run Julia. This command will install the package for your personal use.
using Pkg; Pkg.instantiate()