- Extra requirement packages can be defined for a python package, using square brackets:
pip install "project[extra]", see https://stackoverflow.com/a/46775606/ - dask is a really cool framework for distributed tasks! For example, one may set an object in shared memory using
.scatter: https://docs.dask.org/en/latest/futures.html#move-data - To uninstall a package installed with pip -e git which gives "No files were found to uninstall", search for a
LIBRARYNAME.egg-linkorLIBRARYNAME.egg-infofile, and rename/delete it; a list of dirs where pip searches when doing a freeze can be found withpython -c 'import sys; print(sys.path)' - Path configuration files can change the python path: https://stackoverflow.com/questions/60338280/
- To test whether a port can be used, bind to the port on all the interfaces; see snippet in the bash section below
- Convert
123MBinto bytes
units = {"KB": 2**10, "MB": 2**20, "GB": 2**30