[julia-users] ijulia with multiple versions
I have multiple versions of julia installed on my machine. Is there an easy way to specify which version of julia I want to use when running ijulia? Simon
Re: [julia-users] ijulia with multiple versions
IIRC, the julia path is hard-coded in the profile spec under ~/.ipython So, you could copy/rename the profile folder and change the path, for each julia version (and then probably create a launcher script to start 'ipython --notebook --profile=PROFILENAME' as needed) On Dec 8, 2014 5:58 AM, "Simon Byrne" wrote: > I have multiple versions of julia installed on my machine. Is there an > easy way to specify which version of julia I want to use when running > ijulia? > > Simon >
Re: [julia-users] ijulia with multiple versions
Fantastic, thanks! For the record, in case anyone else is interested: cd ~/.ipython cp -R profile_julia profile_julia4 Then open ~/.ipython/profile_julia4/ipython_config.py and find the line starting with "c.KernelManager.kernel_cmd = ", to point to the relevant julia executable and ijulia package path. Then ipython notebook --profile=julia4 to start. Simon On Monday, 8 December 2014 12:06:02 UTC, Isaiah wrote: > > IIRC, the julia path is hard-coded in the profile spec under ~/.ipython > > So, you could copy/rename the profile folder and change the path, for each > julia version (and then probably create a launcher script to start 'ipython > --notebook --profile=PROFILENAME' as needed) > On Dec 8, 2014 5:58 AM, "Simon Byrne" > > wrote: > >> I have multiple versions of julia installed on my machine. Is there an >> easy way to specify which version of julia I want to use when running >> ijulia? >> >> Simon >> >
Re: [julia-users] ijulia with multiple versions
Does Jupyter not have this sort of functionality? Christoph On Monday, 8 December 2014 12:20:08 UTC, Simon Byrne wrote: > > Fantastic, thanks! For the record, in case anyone else is interested: > > cd ~/.ipython > cp -R profile_julia profile_julia4 > > Then open ~/.ipython/profile_julia4/ipython_config.py and find the line > starting with "c.KernelManager.kernel_cmd = ", to point to the relevant > julia executable and ijulia package path. Then > > ipython notebook --profile=julia4 > > to start. > > Simon > > On Monday, 8 December 2014 12:06:02 UTC, Isaiah wrote: >> >> IIRC, the julia path is hard-coded in the profile spec under ~/.ipython >> >> So, you could copy/rename the profile folder and change the path, for >> each julia version (and then probably create a launcher script to start >> 'ipython --notebook --profile=PROFILENAME' as needed) >> On Dec 8, 2014 5:58 AM, "Simon Byrne" wrote: >> >>> I have multiple versions of julia installed on my machine. Is there an >>> easy way to specify which version of julia I want to use when running >>> ijulia? >>> >>> Simon >>> >>
Re: [julia-users] ijulia with multiple versions
I think they're working on it, but it's not there yet. On Mon, Dec 8, 2014 at 9:07 AM, Christoph Ortner wrote: > Does Jupyter not have this sort of functionality? >Christoph > > > On Monday, 8 December 2014 12:20:08 UTC, Simon Byrne wrote: >> >> Fantastic, thanks! For the record, in case anyone else is interested: >> >> cd ~/.ipython >> cp -R profile_julia profile_julia4 >> >> Then open ~/.ipython/profile_julia4/ipython_config.py and find the line >> starting with "c.KernelManager.kernel_cmd = ", to point to the relevant >> julia executable and ijulia package path. Then >> >> ipython notebook --profile=julia4 >> >> to start. >> >> Simon >> >> On Monday, 8 December 2014 12:06:02 UTC, Isaiah wrote: >>> >>> IIRC, the julia path is hard-coded in the profile spec under ~/.ipython >>> >>> So, you could copy/rename the profile folder and change the path, for >>> each julia version (and then probably create a launcher script to start >>> 'ipython --notebook --profile=PROFILENAME' as needed) >>> On Dec 8, 2014 5:58 AM, "Simon Byrne" wrote: >>> I have multiple versions of julia installed on my machine. Is there an easy way to specify which version of julia I want to use when running ijulia? Simon >>>
Re: [julia-users] ijulia with multiple versions
In fact there is a way to do this. Just go to the REPL with the Julia version you want to switch to and run Pkg.build("IJulia"). This replaces the julia profile files in ~/.ipython to use the right Julia executable.
Re: [julia-users] ijulia with multiple versions
I meant from Jupyter UI. I think that switching kernels in notebooks is in progress. On Mon, Dec 8, 2014 at 10:33 AM, Shashi Gowda wrote: > In fact there is a way to do this. > > Just go to the REPL with the Julia version you want to switch to and run > Pkg.build("IJulia"). This replaces the julia profile files in ~/.ipython to > use the right Julia executable. >
Re: [julia-users] ijulia with multiple versions
> > Just go to the REPL with the Julia version you want to switch to and run > Pkg.build("IJulia"). This replaces the julia profile files in ~/.ipython to > use the right Julia executable. Right, but this is kind of slow and would be annoying to do for routine use I think. Another option might be to change the hard-coded path to look at an environment variable instead (or a global set from a wrapper script, etc.) On Mon, Dec 8, 2014 at 10:33 AM, Shashi Gowda wrote: > In fact there is a way to do this. > > Just go to the REPL with the Julia version you want to switch to and run > Pkg.build("IJulia"). This replaces the julia profile files in ~/.ipython to > use the right Julia executable. >