TUTORIAL / Mike Müller / Functional Python

Publié le: 04 juin 2021
sur la chaîne: PyCon US
4,511
54

I will use a JupyterLab for the tutorial because it makes a very good teaching tool. You are welcome to use the setup you prefer, i.e editor, IDE, REPL. If you also like to use a JupyterLab, I recommend conda for easy installation. Similarly to virtualenv, conda allows creating isolated environments but allows binary installs for all platforms.

There are two ways to install Jupyter via conda:

1. Use Minconda. This is a small install and (after you installed it)
you can use the command conda to create an environment:
conda create -n pycon2021py39 python=3.9
Now you can change into this environment:
conda activate pycon2021py39. The prompt should change to (pycon2021py39).
Now you can install JupyterLab: conda install jupyterlab.

2. Install Anaconda and you are ready to go if you don't mind installing
lots of packages from the scientific field.

3. Install the dependencies:
Jupyter Lab 2 conda install jupyterlab
more_itertools conda more_itertools
toolz conda install toolz

4. Hint: You do all this in one command:
conda create -n pycon2021py39 python=3.9 jupyterlab more-itertools toolz

You can create a comparable setup with virtual environments and pip, if you prefer.

WORKING WITCH CONDA ENVIRONMENTS
After creating a new environment, the system might still work with some stale settings. Even when the command which tells you that you are using an executable from your environment, this might actually not be the case. If you see strange behavior using a command line tool in your environment, use hash -r and try again.


Sur cette page du site, vous pouvez voir la vidéo en ligne TUTORIAL / Mike Müller / Functional Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur PyCon US 04 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,511 fois et il a aimé 54 téléspectateurs. Bon visionnage!