Import packages in Python, even if they aren't installed!
MIT License
Bot releases are hidden (Show)
numpy
Published by jeremymanning about 1 year ago
This release includes four major updates:
davos.project
attribute to a user-defined string, pathlib.Path
, or davos.Project
. If the project is shared across several notebooks, Davos can share package installations across those notebooks, rather than creating new copies of each package for each individual notebook. Setting davos.project
to None
will revert Davos to its pre-v0.2.0 behavior by installing any "smuggled" packages to the current runtime environment. Project can be inspected and managed from within the notebook — e.g., deleting them/“clean up after yourself” when you’re done with a project. Here's a screencast as an example (credit: @paxtonfitzpatrick):davos
module variable rather than solely via davos.config
. For example, to suppress verbose output when new packages are installed, either of the following will now work:# pre v. 0.2.2 version (legacy support)
import davos
davos.config.suppress_stdout = True
# new syntax option as of v 0.2.2
import davos
davos.suppress_stdout = True
We've included new syntax for requiring a specific Python version or pip
version, using davos.require_python(...)
and davos.require_pip(...)
, respectively. This is useful when specified dependencies only run on particular versions of Python, etc.
We have added (unofficial and incomplete) support for using davos in IPython shells. More extensive and robust support for IPython shells will be implemented in a future release.
This release also includes many bug fixes, enhancements, and other optimizations. A complete changelog is available here.
Published by paxtonfitzpatrick almost 2 years ago
davos
can be used to simplify and enhance sharing reproducible research code!smuggle
statements that install packages into alternate Python environments (by changing davos.config.pip_executable
) now successfully import the package in addition to installing itdavos
's non-interactive mode now ensures the installer program doesn't request user input (in addition to davos
itself)selenium
changesFull Changelog: https://github.com/ContextLab/davos/compare/v0.1.0...v0.1.1
Published by paxtonfitzpatrick over 2 years ago
Initial release! See the README for documentation.