Skip to content

Commit

Permalink
Set --project=@. for the default kernel. (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff authored and fredrikekre committed Mar 14, 2019
1 parent aca8d5b commit bd9b39e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,17 @@ running IJulia kernel.
If your code needs to detect whether it is running in an IJulia notebook
(or other Jupyter client), it can check `isdefined(Main, :IJulia) && Main.IJulia.inited`.

### Julia projects

The default Jupyter kernel that is installed by IJulia starts with the
Julia command line flag `--project=@.`. A `Project.toml` (or `JuliaProject.toml`)
in the folder of a notebook (or in a parent folder of this notebook) will
therefore automatically become the active project for that notebook.
Users that don't want this behavior should install an additional IJulia
kernel without that command line flag (see section
[Installing additional Julia kernels](#Installing-additional-Julia-kernels)).


### Customizing your IJulia environment

If you want to run code every time you start IJulia---but only when in IJulia---add a `startup_ijulia.jl` file to your Julia `config` directory, e.g., `~/.julia/config/startup_ijulia.jl`.
Expand Down
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Conda

# Install Jupyter kernel-spec file.
include("kspec.jl")
kernelpath = installkernel("Julia")
kernelpath = installkernel("Julia", "--project=@.")

# make it easier to get more debugging output by setting JULIA_DEBUG=1
# when building.
Expand Down

0 comments on commit bd9b39e

Please sign in to comment.