QuartoNotebookRunner.jl icon indicating copy to clipboard operation
QuartoNotebookRunner.jl copied to clipboard

Feature Request: Allow stacked environments

Open ajinkya-k opened this issue 9 months ago • 4 comments

@dmbates and I am were trying to use AppleAccelerate installed in the @v1.11 environment in a notebook and it didn't work. Is allowing stacked environments in the roadmap?

ajinkya-k avatar Apr 14 '25 18:04 ajinkya-k

As far as I remember we specifically chose to disable stacked environments by default, because they lead people to writing non-reproducible notebooks. If you really cannot install AppleAccelerate into the notebook's local env, you could maybe modify LOAD_PATH inside the notebook but I wouldn't recommend it.

jkrumbiegel avatar Apr 14 '25 19:04 jkrumbiegel

that's fair. Is it possible to use command line args to do this instead, or maybe using exeflags

ajinkya-k avatar Apr 14 '25 19:04 ajinkya-k

Ironically our purpose is to have notebooks that behave (slightly) differently on different systems where the preferred BLAS implementation depends on the architecture.

dmbates avatar Apr 14 '25 19:04 dmbates

Is allowing stacked environments in the roadmap?

It's not on the roadmap.

modify LOAD_PATH

Yes, that's probably your option if you really can't install the dependency in the actual manifest itself.

Is there anything stopping you from just including the dependencies for all the platforms you want to cover in a single manifest, and then conditionally importing only the one you want based on platform?

MichaelHatherly avatar Apr 15 '25 07:04 MichaelHatherly