-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Don't assume Plutos deps are available from toplevel #542
Comments
If the stdlibs (listed here) aren't available to the runner process, then is there any way for us to load them anyways? Otherwise a custom load path is just not supported. |
You can presumably load them from the Pluto namespace (see e.g. JuliaLang/IJulia.jl#951) |
|
(I don’t know how to fix this. Does not seem like a priority though.) |
@Roger-luo any ideas? |
I guess the solution is to let Pluto workspace runner use a Pluto specific environment to launch processes, then each process will own their own project? I'm not sure if I understand the problem correctly tho @fredrikekre |
You cannot really start a new process and import a bunch of packages at the top level, the environment system doesn't work like that. Starting a new process, importing Pluto in it, and accessing everything from that ( |
Thanks everyone! |
(note to self/contributors) I was able to reproduce it like so: fons@woof:~$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.5.0-rc1.0 (2020-06-26)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.5) pkg> activate --temp
Activating new environment at `/tmp/jl_a0cvvq/Project.toml`
(jl_a0cvvq) pkg> dev /home/fons/Pluto.jl
...
julia> LOAD_PATH
3-element Array{String,1}:
"@"
"@v#.#"
"@stdlib"
julia> deleteat!(LOAD_PATH, 2)
2-element Array{String,1}:
"@"
"@stdlib"
julia> deleteat!(LOAD_PATH, 2)
1-element Array{String,1}:
"@"
julia> import Pluto; Pluto.run() |
Fixed in 82ed697 😀 |
Running Julia with a custom load path doesn't work since Pluto assumes that it can load stdlibs from toplevel.
The text was updated successfully, but these errors were encountered: