Le 06/11/2017 à 09:50, Stephan Houben a écrit :
> Hi Michel,
> 
> That's exactly why I proposed a `pip` function available from the Python
> prompt.
> I suppose you could still tell your students to copy/paste the following
> into their
> Python interpreter.
> 
> def pip(args):
>     import sys
>     import subprocess
>     subprocess.check_call([sys.executable, "-m", "pip"] + args.split())
>     print("Please restart Python now to use installed or upgraded
> packages.")


You still need to install pip on platforms it's not available. And do
that in a virtualenv or do --user. And ask for a restart.

> I suppose an alternative is to set up jupyterhub
> 
> https://jupyterhub.readthedocs.io/en/latest/
> 

I love jupyter, but you can't limit yourself to it. That won't give them
autonomy and will limit very much what they can do. E.G: You can't use
tkinter in jupyter easily.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to