You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB
Markdown

3 years ago
# Actes princiers -- refactoring datascience
3 years ago
3 years ago
## Project Name
human readable name : `Actes Princiers`
The project name 'Actes Princiers' has been applied to:
3 years ago
- The project title in `datascience/actes-princiers/README.md`
- The folder created for your project in `datascience/actes-princiers`
3 years ago
- The project's python package in `datascience/actes-princiers/src/actes_princiers`
A best-practice setup includes initialising git and creating a virtual environment before running 'pip install -r src/requirements.txt'
3 years ago
## Getting started
3 years ago
3 years ago
- Install a virtual environment : `python -m venv .venv`
3 years ago
- Enable the virtual environment : `source .venv/bin/activate`
3 years ago
- install kedro `pip install kedro`
3 years ago
- Install the packages and libraries `pip install -r src/requirements.txt`
3 years ago
3 years ago
**go to `actes-princiers`'s folder**
3 years ago
Then open a terminal in the `actes-princiers`'s folder
and launch jupyter : `kedro jupyter notebook`
3 years ago
or start the ipython prompt : `kedro ipython`
3 years ago
3 years ago
## Launching the pipelines
3 years ago
3 years ago
Open a terminal in the `actes-princiers`'s folder and launch kedro
3 years ago
`kedro run`
3 years ago
or launch a specific node in the pipeline with:
`kedro run --nodes=preprocess_html`
3 years ago
or a search by tags with:
3 years ago
`kedro run --tags=xsl`
3 years ago
## Visualizing the pipelines
`kedro viz`
3 years ago
## Building the docs
3 years ago
`./build-docs.sh docs`
3 years ago
the html built doc is `here <docs/build/html/>`_
3 years ago
## Developper's rules and guidelines
3 years ago
3 years ago
Declare any dependencies in `src/requirements.txt` for `pip` installation.
3 years ago
3 years ago
To install them, run: `pip install -r src/requirements.txt`
3 years ago
3 years ago
## tips
3 years ago
3 years ago
You need to reload Kedro variables by calling `%reload_kedro` in your notebook and re-run the code snippet
3 years ago
3 years ago