-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Example of stacked environments #58604
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
base: master
Are you sure you want to change the base?
Conversation
Hello! I am a bot. Thank you for your pull request! I have assigned
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for offering this idea for the manual!
The bulk of this seems like a tutorial describing a fairly involved workflow. This sort of content is rarely appropriate for the manual, and doesn't concisely exemplify the section that it's an example in.
Maybe an example that uses only the global environment and a project environment would be better. I would also avoid introducing startup.jl
files into this and copying from the downloads folder.
# startup.jl | ||
try | ||
push!(LOAD_PATH, expanduser("~/.julia/environments/sci-tools")) | ||
using Plots | ||
using LaTeXStrings | ||
catch e | ||
@warn "Failed to auto-load school tools" exception=(e, catch_backtrace()) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This startup file will significantly increase julia startup latency.
Thank you for the review. I wanted to contribute this to contribute the If I could just get that one line in somewhere I would be happy. If not in this section is there a better place you could recommend for it? |
That sounds like a fine inclusion as an example. Though we should probably use As an aside, I personally have both # https://github.com/JuliaLang/julia/issues/46231
isinteractive() && insert!(LOAD_PATH, 1, mktempdir()) and isinteractive() && push!(LOAD_PATH, "@Plots") In my startup.jl file. |
I found it hard to understand how to work with stacked environments. The algorithm explanation is very nice but it clarifies things a lot for me to see why and how I would be interested in this feature.
I think/suppose for most users, the key point should be that you want to install dev tools in
@v#.#
, like suggested for Revise, and not think about stacked environments otherwise. But for people who want to go further, this will help.