This package helps you download and configure common tools for teaching and doing data science without an internet connection. This includes:
- Installers for data science languages: Currently R and Python
- Installers for common data science IDEs: Currently RStudio
- Partial local mirrors of package repositories: Currently CRAN (for R) and PyPI (for Python)
- Locally browseable clones of data science teaching websites: Currently Data Carpentry and Software Carpentry
Early stage experiment
We recomend that most users install the command line interface (CLI) using pipx. This will produce an isolated installation than can be run using the CLI. First, install pipx and then run:
pipx install offlinedatasciTo install the package into the current Python environment using pip:
pip install offlinedatasciIf you need functionality that has been implemented but not released yet you can install the development version.
To install directly from GitHub without have a local copy of the code to edit:
pip install git+https://git@github.com/carpentriesoffline/offlinedatasci.gitTo download and then install the code (which provides a local copy of the code to edit), first clone the repository and then from the root directory run:
git clone https://github.com/carpentriesoffline/offlinedatasci.git
cd offlinedatasci
pip install .On macOS make sure wheel package is installed first.
Download and install everything (~2 GB):
offlinedatasci install all <path>Create just the local CRAN mirror with basic data science packages (~0.5 GB):
offlinedatasci install r-packages <path>To add packages beyond those included in the basic data science teaching focused mirrors use add-packages
The command structure is offlinedatasci add-packages followed by the language you want to add packages to, followed by the names of the packages, followed by the path of the mirror.
The path should be the same as where the mirror was originally setup, so the same install path you used for setup offlinedatasci.
For example, to add the sf, terra, and stars geospatial packages to the CRAN mirror:
offlinedatasci add r-packages package1 package2 ... <path>- Increment the version numbers in
pyproject.toml,__init__.py, anddocs/conf.py - Commit and push the changes to GitHub
- Create a tag for the new version
- Push the tag to GitHub (
git push upstream <tag_name>) - Make sure the
buildpackage is installed - Make sure your PyPI credentials are stored in
~/.pypirc - Build the source distribution:
python -m build --sdist - Build the universal wheel:
python -m build --wheel - Upload the new release to PyPI:
twine upload dist/*