TUTORIAL / Mike Müller / Functional Python

Pubblicato il: 04 giugno 2021
sul canale di: 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.


In questa pagina del sito puoi guardare il video online TUTORIAL / Mike Müller / Functional Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PyCon US 04 giugno 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,511 volte e gli è piaciuto 54 spettatori. Buona visione!