[IPython-dev] Using virtualenvs as kernels for Jupyter

Paddy Mullen paddy at paddymullen.com
Mon Aug 25 08:45:42 EDT 2014


Would it make sense to give notebooks a preamble cell where the notebook
could check that all of its required dependencies are installed.  I guess
this could be done by convention.  Notebooks could also include a
dependency list in requirements.txt or conda.yaml or a docker file, but the
installation of those venvs is left as an implementation detail.


On Fri, Aug 22, 2014 at 2:40 PM, Filipe Pires Alvarenga Fernandes <
ocefpaf at gmail.com> wrote:

> On Fri, Aug 22, 2014 at 2:34 PM, Fernando Perez <fperez.net at gmail.com>
> wrote:
>
>> We looked into it and as far as we can tell, all the pieces we're
>> providing for the kernel spec should make it possible to have your kernel
>> entry point do the switching.
>>
>
> OK, I will keep trying to have something more robust.  Right now I am
> doing a very hackish workaround.
>
>
>> But we will NOT bake into the kernel spec direct knowledge of venv, conda
>> envs, or any other 'enviornment manager'. We want to make it *possible* do
>> declare kernels that are connected to environments, but as of yet, there
>> are just too many ways of 'managing environments' across languages and
>> toolchains for us to enshrine any particular approach into the spec itself.
>>
>
> I understand (and I agree) with that.
>
>
>> As I say above, we looked into it, but we didn't actually implement
>> anything yet. So we'd encourage you to try things out, and report both with
>> what works (I'm sure others are interested) and what doesn't (so we can
>> help out or fix things if needed)
>>
>
> As soon as I have something better I will post it here.
>
>
>> Cheers
>>
>> f
>>
>
> Thanks,
>
> -Filipe
>
>
>>
>>
>> On Fri, Aug 22, 2014 at 8:55 AM, Filipe Pires Alvarenga Fernandes <
>> ocefpaf at gmail.com> wrote:
>>
>>> Have anyone tried to use venvs as kernels?  Making the installed vens
>>> show up in the drop-down menu in the new Jupyter Notebook?
>>>
>>> I was toying with the idea but got nowhere near something useful.
>>>
>>> I think it would be a nice way to switch between virtual environments.
>>>
>>> -Filipe
>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>
>>
>> --
>> Fernando Perez (@fperez_org; http://fperez.org)
>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
>> fernando.perez-at-berkeley: contact me here for any direct mail
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140825/9dc6228d/attachment.html>


More information about the IPython-dev mailing list