Skip to content

Commit

Permalink
Allow users to opt out of the default kernel. (#958)
Browse files Browse the repository at this point in the history
* Allow users to opt out of the default kernel.

* document IJULIA_NODEFAULTKERNEL

Co-authored-by: Steven G. Johnson <[email protected]>
  • Loading branch information
vchuravy and stevengj authored Nov 14, 2020
1 parent 29a2e5d commit 37688a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using Conda

# Install Jupyter kernel-spec file.
include("kspec.jl")
kernelpath = installkernel("Julia", "--project=@.")
if !haskey(ENV, "IJULIA_NODEFAULTKERNEL")
# Install Jupyter kernel-spec file.
include("kspec.jl")
kernelpath = installkernel("Julia", "--project=@.")
end

# make it easier to get more debugging output by setting JULIA_DEBUG=1
# when building.
Expand Down
1 change: 1 addition & 0 deletions docs/src/manual/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ installkernel("Julia (4 threads)", env=Dict("JULIA_NUM_THREADS"=>"4"))
```
The `env` keyword should be a `Dict` mapping environment variables to values.

To *prevent* IJulia from installing a default kernel when the package is built, define the `IJULIA_NODEFAULTKERNEL` environment variable before adding/building IJulia.

## Low-level Information

Expand Down

0 comments on commit 37688a1

Please sign in to comment.