11# ######################################################################
22# Install Jupyter kernel-spec file.
33
4- copy_config (src, dest) = Compat . cp (src, joinpath (dest, basename (src)), force= true )
4+ copy_config (src, dest) = cp (src, joinpath (dest, basename (src)), force= true )
55
66"""
77 installkernel(name, options...; specname=replace(lowercase(name), " "=>"-")
@@ -40,8 +40,8 @@ function installkernel(name::AbstractString, julia_options::AbstractString...;
4040
4141 juliakspec = joinpath (tempdir (), spec_name)
4242 try
43- binary_name = Compat . Sys. iswindows () ? " julia.exe" : " julia"
44- kernelcmd_array = String[joinpath (Compat . Sys. BINDIR," $binary_name " ), " -i" ,
43+ binary_name = Sys. iswindows () ? " julia.exe" : " julia"
44+ kernelcmd_array = String[joinpath (Sys. BINDIR," $binary_name " ), " -i" ,
4545 " --startup-file=yes" , " --color=yes" ]
4646 append! (kernelcmd_array, julia_options)
4747 ijulia_dir = get (ENV , " IJULIA_DIR" , dirname (@__DIR__ )) # support non-Pkg IJulia installs
@@ -65,7 +65,7 @@ function installkernel(name::AbstractString, julia_options::AbstractString...;
6565 copy_config (joinpath (ijulia_dir," deps" ," logo-32x32.png" ), juliakspec)
6666 copy_config (joinpath (ijulia_dir," deps" ," logo-64x64.png" ), juliakspec)
6767
68- Compat . @info (" Installing $name kernelspec $spec_name " )
68+ @info (" Installing $name kernelspec $spec_name " )
6969
7070 # remove these hacks when
7171 # https://github.com/jupyter/notebook/issues/448 is closed and the fix
@@ -75,13 +75,13 @@ function installkernel(name::AbstractString, julia_options::AbstractString...;
7575 run (` $jupyter kernelspec install --replace --user $juliakspec ` )
7676 push! (kspec_cmd, jupyter, " kernelspec" )
7777 catch
78- @static if Compat . Sys. isunix ()
78+ @static if Sys. isunix ()
7979 run (` $jupyter -kernelspec install --replace --user $juliakspec ` )
8080 push! (kspec_cmd, jupyter * " -kernelspec" )
8181 end
8282
8383 # issue #363:
84- @static if Compat . Sys. iswindows ()
84+ @static if Sys. iswindows ()
8585 jupyter_dir = dirname (jupyter)
8686 jks_exe = " "
8787 if jupyter_dir == abspath (Conda. SCRIPTDIR)
0 commit comments