Thanks, this is very simple indeed.
Each cell is treated as its own, indeptendent, document atm, but there are plans to change that, of course.
Is there an issue I could watch to track this?
What does “the error messages were messed up” mean?
For example, running sqrt(-1)
in the Jupyter kernel gives me:
DomainError with -1.0:
sqrt will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
Stacktrace:
[1] throw_complex_domainerror(f::Symbol, x::Float64)
@ Base.Math ./math.jl:33
[2] sqrt
@ ./math.jl:582 [inlined]
[3] sqrt(x::Int64)
@ Base.Math ./math.jl:608
[4] top-level scope
@ In[1]:1
[5] eval
@ ./boot.jl:360 [inlined]
[6] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1094
While running it in the Julia kernel fails with this error message:
Stacktrace:
[1] throw_complex_domainerror(f::Symbol, x::Float64)
@ Base.Math ./math.jl:33
[2] sqrt
@ ./math.jl:582 [inlined]
[3] sqrt(x::Int64)
@ Base.Math ./math.jl:608
[4] top-level scope
@ ~/code/ai-mgr-1/evolutionary-algorithms/eva/test.ipynb:1
[5] eval
@ ./boot.jl:360 [inlined]
[6] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1094
[7] #invokelatest#2
@ ./essentials.jl:708 [inlined]
[8] invokelatest
@ ./essentials.jl:706 [inlined]
[9] (::VSCodeServer.var"#98#99"{VSCodeServer.NotebookRunCellArguments, String})()
@ VSCodeServer ~/.vscode-insiders/extensions/julialang.language-julia-1.4.3/scripts/packages/VSCodeServer/src/serve_notebook.jl:18
[10] withpath(f::VSCodeServer.var"#98#99"{VSCodeServer.NotebookRunCellArguments, String}, path::String)
@ VSCodeServer ~/.vscode-insiders/extensions/julialang.language-julia-1.4.3/scripts/packages/VSCodeServer/src/repl.jl:185
[11] notebook_runcell_request(conn::VSCodeServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::VSCodeServer.NotebookRunCellArguments)
@ VSCodeServer ~/.vscode-insiders/extensions/julialang.language-julia-1.4.3/scripts/packages/VSCodeServer/src/serve_notebook.jl:14
[12] dispatch_msg(x::VSCodeServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeServer.JSONRPC.MsgDispatcher, msg::Dict{String, Any})
@ VSCodeServer.JSONRPC ~/.vscode-insiders/extensions/julialang.language-julia-1.4.3/scripts/packages/JSONRPC/src/typed.jl:67
[13] serve_notebook(pipename::String; crashreporting_pipename::String)
@ VSCodeServer ~/.vscode-insiders/extensions/julialang.language-julia-1.4.3/scripts/packages/VSCodeServer/src/serve_notebook.jl:94
[14] top-level scope
@ ~/.vscode-insiders/extensions/julialang.language-julia-1.4.3/scripts/notebook/notebook.jl:10
[15] include(mod::Module, _path::String)
@ Base ./Base.jl:386
[16] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:285
[17] _start()
@ Base ./client.jl:485