I am trying to create a new Julia environment in VSCode, and run some stuff from it. However, I have a feeling that I might not have really grasped how to do this properly. It would be good if someone could have a look at my workflow.
- First I create a new folder on my desktop; “My_New_Project”.
- Next, I open VSCode. It opens with a terminal open. Checking with
lsthere, it seems to be in my home directory. I write
cd Desktop/My_New_Projectto change the folder to where I want my new environment.
- Next, I open a Julia REPL. Checking with
pwd()it seems to be in my home folder. I run
; cd Desktop/My_New_Projectto move Julia to my desired project folder.
- I then run
] activate .to activate the folder as a new Julia project.
- I run
] add DifferentialEquations, ModelingToolkit, Catalyst, Plotsto add the packages I require for my project.
- I check with
] statusthat indeed only these packages are active in my environment.
- I run
] dev ModelingToolkit, because I require the master of the ModelingToolkit package (I have the latest version pulled to my “.julia/dev” folder.
- I now close VSCode (reasons unknown, but sometimes you require to close it, and I initially had some trouble with resuming stuff).
- I now repeat the steps 2-4. Here, running
] activate .again allows me to resume the previous environment? Running
] statusseems to confirm that.
Is this the proper/correct way of doing things? Is there some smoother way of doing things?