-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
nbconvert with Julia kernel fails inside Pkg.test
#1031
Comments
I think the reason it doesn't work with The reason I made an issue here is that I'd expect the IJulia kernel to inherit the |
From the git blame of Line 97 in 8710cd4
I found JuliaLang/Pkg.jl#1815 which is a reason to not specify --startup-file 😕
|
Ah, I now realise the command to start the kernel is normally set one time in |
@bencottier, are you able to |
IIRC, yes I was able to |
I have a Julia package with a function that runs
nbconvert
- it's actually usingWeave.notebook
but I've since found a MWE.I want to test the function that runs
nbconvert
but I hit an error whennbconvert
runs the Julia kernel.MWE setup
For the MWE I created a package/folder
IJuliaPkgTest.jl
with the following structure:Project.toml
:src/IJuliaPkgTest.jl
just containsmodule IJuliaPkgTest end
.test/runtests.jl
:Finally,
test.ipynb
:The problem
Here is the error when I run
Pkg.test
. The key thing is this after the julia kernel starts:As you can see I have a
startup.jl
file, which containsusing Revise
. I haveRevise.jl
in my base environment, but the base environment doesn't seem to be available here.Full logs:
My guess is this has something to do with
Pkg.test
runningjulia
with--startup-file=no
and the IJulia kernel running with the default--startup-file=yes
. ThePkg.test
command looks like this:But it's not just that, because this seems to run OK:
versioninfo
The text was updated successfully, but these errors were encountered: