Skip to content

Commit

Permalink
Separate dev dependencies in default project template
Browse files Browse the repository at this point in the history
Fix gh-2519.

Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
  • Loading branch information
astrojuanlu committed May 17, 2023
1 parent 94a7683 commit 9acadc9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
14 changes: 3 additions & 11 deletions kedro/templates/project/{{ cookiecutter.repo_name }}/README.md
Expand Up @@ -60,29 +60,21 @@ After this, if you'd like to update your project requirements, please update `re
## How to work with Kedro and notebooks

> Note: Using `kedro jupyter` or `kedro ipython` to run your notebook provides these variables in scope: `context`, `catalog`, and `startup_error`.
>
> Jupyter, JupyterLab, and IPython are already included in the project requirements by default, so once you have run `pip install -r requirements.txt` you will not need to take any extra steps before you use them.
### Jupyter
To use Jupyter notebooks in your Kedro project, you need to install Jupyter:
Jupyter, JupyterLab, and IPython are not included in the project requirements by default. To install them, run the following command:

```
pip install jupyter
pip install -r dev-requirements.txt
```

### Jupyter
After installing Jupyter, you can start a local notebook server:

```
kedro jupyter notebook
```

### JupyterLab
To use JupyterLab, you need to install it:

```
pip install jupyterlab
```

You can also start JupyterLab:

```
Expand Down
@@ -0,0 +1,12 @@
black~=22.0
flake8>=3.7.9, <5.0
ipython>=7.31.1, <8.0; python_version < '3.8'
ipython~=8.10; python_version >= '3.8'
isort~=5.0
jupyter~=1.0
jupyterlab_server>=2.11.1, <2.16.0
jupyterlab~=3.0, <3.6.0
nbstripout~=0.4
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
@@ -1,14 +1,2 @@
black~=22.0
flake8>=3.7.9, <5.0
ipython>=7.31.1, <8.0; python_version < '3.8'
ipython~=8.10; python_version >= '3.8'
isort~=5.0
jupyter~=1.0
jupyterlab_server>=2.11.1, <2.16.0
jupyterlab~=3.0, <3.6.0
kedro~={{ cookiecutter.kedro_version }}
kedro-telemetry~=0.2.0
nbstripout~=0.4
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2

0 comments on commit 9acadc9

Please sign in to comment.