-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
set isinteractive via the command line #230
Conversation
Otherwise it looks like ~/.juliarc.jl will always be loaded too early
Note that this only works in Julia 0.3, and currently IJulia is backwards compatible with 0.2. It would be best to just add the |
I haven't tested it in julia@0.2 but I think it should work now |
@@ -70,7 +70,7 @@ else | |||
binary_name = "julia-basic" | |||
end | |||
add_config("ipython_config.py", "KernelManager.kernel_cmd", | |||
"""["$(escape_string(joinpath(JULIA_HOME,(@windows? (VERSION >= v"0.3-"?"julia.exe":"julia.bat"):"$binary_name"))))", "-F", "$(escape_string(joinpath(Pkg.dir("IJulia"),"src","kernel.jl")))", "{connection_file}"]""", | |||
"""["$(escape_string(joinpath(JULIA_HOME,(@windows? (VERSION >= v"0.3-"?"julia.exe":"julia.bat"):"$binary_name"))))", $(VERSION < v"0.3" ? " " : "-i"), "-F", "$(escape_string(joinpath(Pkg.dir("IJulia"),"src","kernel.jl")))", "{connection_file}"]""", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing " "
as an option is not equivalent to passing no option at all: Julia will treat it as if you asked it to open a file named " "
, and will fail.
(One simple test is to change your version test to VERSION >= v"0.5"
to see what happens when you pass " "
to Julia 0.3.)
Sorry about that I actually thought I'd at least done that test. Take another look |
set isinteractive via the command line
Looks good, thanks! |
Otherwise it looks like ~/.juliarc.jl will always be loaded too early