4 awesome Julia tricks you need to know

Manpreet Singh
3 min readJul 13, 2021

Welcome back! Julia is an awesome language used for tons of numerical processing, so let’s talk about some of the top tricks for Julia. Although these range in uses, all of these could probably be implemented inside of your Julia projects! With that long introduction out of the way, let’s get into it!

Filtering Out File Types

Starting off, one of the coolest tricks you can do is filtering out the file types of a directory, to do this we can use the endswith method:

xlsxs = filter(endswith(".xlsx"), readdir())

This will output all of the files that end with .xlsx in that directory and store it in a variable called xlsxs.

Getting Help

Another awesome trick that Julia has is entering help mode, to do this you have to type in a ? in your prompt:

By doing this, you can access documentation(s) on any of the specific methods that you may need help with!

Using Package Mode

Julia has an awesome feature called package mode, this allows you to access Julias package manager extremely easy. To do this, you will need to type a ], when you do that, the package manager will come up, allowing you to update, install and modify your packages!

--

--