-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post-specific environments #144
Comments
You can already do this though?
Note that if you do it, you have to do that everywhere, as otherwise the next blog post will use that environment (either that or you need to re-activate the general environment at the end of the blog post). PS: I'm open to suggestions for doing this differently or having things that can help you do this; but I'm reluctant to enforce every blog post to have a Project/Manifest which would generally seem quite cumbersome. |
Right, it's doable, but somewhat cumbersome. Perhaps this is a feature that would work in an external package or something? Or maybe I need to just build a new
I 100% agree with this, that would not be a good experience at all. |
hmm actually I think that could be nice. So it's entirely possible to adjust the function
if unspecified, nothing happens, if specified it does the activation / deactivation around the call. Important note: there are some limits to Julia's model of environments, meaning for instance that if you have one post that uses self-note: wouldn't work in multi-threaded pass. |
Interesting. I guess the only way around this would be to start a new julia instance for each post? That could get messy with latency, I guess. But otherwise, I think this would be really nice. |
If the really nice you're referring to is the ability to have concurrent version, then this is not going to happen. If you were commenting on the suggestion to have a path passed to the literate command to find relevant toml files, then sure 👍 |
Heh, that was ambiguous, wasn't it? I meant your suggestion of |
If I really desperately need exquisite control over the environment, it's |
Some further thought on this: would you be happy with this being set at page level? i.e.:
if given, the relevant files would be activated/instantiated before executing the page, and de-activated (back to the "main" website environment) after the page execution. I think that would make more sense than providing specifically to |
Yeah, I definitely think that makes sense. In principle, I can imagine situations where you'd want to have multiple different environments, but that seems like a tiny minority of cases, and probably too fiddly to try to support it. This is the kind of thing where a user should probably write their own code to deal with it. |
Right exactly, a user can always just use Pkg as they see fit. Ok I'll try to figure this one out, thanks for the suggestion, I'll probably reach out to you again to test it 😅 |
This is over a year ago and I'd totally understand if you've moved on to other stuff but the feature is now with an example in #197; if you do get a chance to try, lmk and thanks for the feature request! |
Oh, sorry - my ability to work on web stuff really took a nose-dive over the last year! The examples look great, I'll be happy to test this out! |
I'm most interested in this for
literate
notebooks, but it would be nice to be able to have post-specificProject.toml
/Manifest.toml
. Duplicate of tlienart/Franklin.jl#528.The primary use-case for me is to be able to have pinned versions of packages / reproducible manifests attached to individual posts.
The text was updated successfully, but these errors were encountered: