Let’s start with a little tutorial for those who are taking their first steps in creating packages for Julia. We’re not going get a headhach, promise, we’re just going to take the basic steps of Julia’s documentation and add the use of the Revise package, which is frankly essential to develop packages in a fluid way.
The list of survival equipment to be carried is quite light:
- a code editor such as Visual Studio Code or Atom,
- a terminal for typing commands, which can be the one integrated into your editor, as in Visual Studio Code, or Julia’s shell.
- Install Julia of not done, of course. It could be nice to be able to call it with the “julia” command (Linux is at the end) if you’re using VS Code or a terminal.
We will place ourselves in the right folder, the one in which you want to place your code. If you are in a terminal it is a matter of a cd, if you are already in Julia it is that easy. A little pwd() to know where you are and then something like:
julia> cd(“./my_code”)
Then, in julia, with the ] key, you go to the package manager to create the package:
pkg> generate HelloWorld