Skip to content

Commit

Permalink
Set the run_notebook_on_load flag false
Browse files Browse the repository at this point in the history
  • Loading branch information
Sov-trotter committed Dec 21, 2020
1 parent 9707458 commit d2d2db2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Configuration.jl
Expand Up @@ -48,7 +48,7 @@ end
For internal use only.
"""
Base.@kwdef mutable struct EvaluationOptions
run_notebook_on_load::Bool = true
run_notebook_on_load::Bool = false
workspace_use_distributed::Bool = true
end

Expand Down
7 changes: 2 additions & 5 deletions src/Neptune.jl
Expand Up @@ -52,13 +52,10 @@ include("./webserver/WebServer.jl")

if get(ENV, "JULIA_PLUTO_SHOW_BANNER", "1") !== "0"
@info """\n
Welcome to Pluto $(PLUTO_VERSION_STR) 🎈
Welcome to Neptune $(PLUTO_VERSION_STR) 🎈
Start a notebook server using:
julia> Pluto.run()
Have a look at the FAQ:
https://github.com/fonsp/Pluto.jl/wiki
julia> Neptune.run()
\n"""
end

Expand Down
2 changes: 1 addition & 1 deletion src/notebook/Notebook.jl
Expand Up @@ -173,7 +173,7 @@ function load_notebook_nobackup(path::String)::Notebook
end

"Create a backup of the given file, load the file as a .jl Pluto notebook, save the loaded notebook, compare the two files, and delete the backup of the newly saved file is equal to the backup."
function load_notebook(path::String, run_notebook_on_load::Bool=true)::Notebook
function load_notebook(path::String, run_notebook_on_load::Bool=false)::Notebook
backup_path = numbered_until_new(path; sep=".backup", suffix="", create_file=false)
# local backup_num = 1
# backup_path = path
Expand Down
4 changes: 2 additions & 2 deletions src/webserver/WebServer.jl
Expand Up @@ -65,12 +65,12 @@ swallow_exception(f, exception_type::Type{T}) where T =
"""
Pluto.run()
Start Pluto!
Start Neptune!
## Keyword arguments
You can configure some of Pluto's more technical behaviour using keyword arguments, but this is mostly meant to support testing and strange setups like Docker. If you want to do something exciting with Pluto, you can probably write a creative notebook to do it!
Pluto.run(; kwargs...)
Neptune.run(; kwargs...)
For the full list, see the [`Pluto.Configuration`](@ref) module. Some **common parameters**:
Expand Down

0 comments on commit d2d2db2

Please sign in to comment.