@choldgraf metadata would be one way to do it, but a few birds could be killed with one stone by having a gui form in the extension that helps the user define the environment. Most of it can be scraped with import os, platform
Does my notebook need these optional things:
-
Specific version of python.
- Dropdown of #.#.# versions.
- Default to
platform.python_version()
- Fetch Docker image via url for that Python version.
- Default to
- Skip over the weird scenarios like Python including/ excluding optional zlib for now.
- Dropdown of #.#.# versions.
-
Specific versions of packages.
- Text box for path.
- Default to
pip freeze
orconda list
if ('conda' in sys.version) or ('Continuum' in sys.version)
- Default to
- Text box for path.
-
Specific OS.
- Default to
os.name
orplatform.version()
- E.g. multiprocessing works differently on Windows.
- Default to
-
Other Files.
- [Do most people use
raw.githubusercontent.com
urls for this?] - Data Files
- Text boxes for paths.
- Default to everything w csv, parquet, hdf5 file extensions.
- Text boxes for paths.
-
.py
scripts
- [Do most people use