Project Specific Startup.jl

TI36XPro
Sun, 23 Jul 2023 03:18:14 +0000
General Usage

Hello,

I am using DrWatson to manage some simulations for an upcoming conference. I am using some locally developed packages that do not include DrWatson in their dependencies.

They create some complicated data structures that I have my own methods defined for saving to file using HDF5.

I want to take advantage of the DrWatson saving tools so I need to overload _wsave per the docs. That’s fine - however I’d prefer not to have to do this in every script I create nor do I want to add DrWatson as a dependency to my packages.

I know that I can have methods be created on startup via ./julia/config/startup.jl however I think(?) that is global. I’d like to confine the definition of these methods to a specific project/environment.

Does that make sense? What is the best method to achieve something like a local startup.jl that gets run any time I run Julia in a particular environment?

4 posts - 4 participants