[IPython-dev] Default Kernel for Jupyter
Matthias Bussonnier
bussonniermatthias at gmail.com
Mon Feb 9 17:22:27 EST 2015
Le 9 févr. 2015 à 14:05, John Omernik <john at omernik.com> a écrit :
> No, using Python2 just because of the comfortable syntax and that's
> what the data science team uses. I guess I could encourage it, but
> it's frustrating for the data guys who just want things to be easy an
> intuitive :)
Frankly, now python3 is completely usable,
syntax is the same beyond print, and __future__ make most code
compatible with python2.
I had to sprinkle my PhD with a few explicit list() to avoid iterator on plotting,
but that's about it.
> With ipython (jupyter) I don't have a jupyter command, so I figured
> that the command is actualy ipython notebook --help-all?
Yeah, I have an alias.
> Should I
> just set the profile for each user to use python2? I guess, here's a
> dumb question, how do we set profile config items in Ipython3? I don't
> see the py file in the profile_default, just a sqllite file. (*feels
> dumb right now)
Yeah, python config file might not be here,
You don't need to copy file from other default profile,
you can create them from scratch also.
You can ale make json config file if you like.
> Le 9 févr. 2015 à 14:11, John Omernik <john at omernik.com> a écrit :
> Derp, I got it, I had to create a new profile, and then copy the .py
> files into the default. (you may question why I am using the default
> like that, and it's mainly because I can't figure out how to tell
> jupyterhub to use a specific profile)
Not sure about that, if you install only IPython3 through python 2 it should work,
or you can set the command I guess.
--
M
>
> On Mon, Feb 9, 2015 at 3:57 PM, Matthias Bussonnier
> <bussonniermatthias at gmail.com> wrote:
>> Hey,
>>
>>
>> Le 9 févr. 2015 à 12:34, John Omernik <john at omernik.com> a écrit :
>>
>>> As I am opening my old iPython notebooks for 2.3 in Jupyter, it's
>>> converting them to the format, but sometimes it changes the kernel to
>>> python3. We were using all Python2, and that's what I'd like to keep
>>> using in Jupyter. Is there away to set a default Kernel to be Python2,
>>> both for new notebooks and converted notebooks?
>>
>>
>> $ jupyter notebook --help-all
>>
>> ...
>> MappingKernelManager options
>> ----------------------------
>> --MappingKernelManager.default_kernel_name=<Unicode>
>> Default: 'python3'
>> The name of the default kernel to start
>> ...
>>
>>
>> So c.MappingKernelManager.default_kernel_name='python2'
>> Or equivalent should work for you.
>>
>> Have you still considered migrating to Python 3 ?
>> --
>> M
>>
>>
>>
>>> Thanks
>>>
>>> John
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list