AnswerDotAI / AnswerDotAI/nbdev

Configure requirements for build.

Open
#1,236 1 comment 0 reactions 0 assignees View on GitHub
waiting for response
Dominant language
Jupyter Notebook
Stars
5.3k
Forks
513
Avg merge
2d 30m
Merged PRs (30d)
8

Description

nbdev deployment tends to fail for me because of errors like "numpy not installed"
I have both a `requirements.txt` file (pip) and a `env.yml` file (Conda) for creating the environment for working with this project.

From looking at `setup.py`
```python
# line 27 / 28
requirements = cfg.get('requirements','').split()
if cfg.get('pip_requirements'): requirements += cfg.get('pip_requirements','').split()
```

it looks like I just need to add requirements to `settings.ini` e.g.

```ini
requirements = pandas==1.3.5 tqdm==4.64.1 numpy==1.23.3
```

Which I have now done. I pushed and got the error:
```
github-pages 227 | Error: No such file or directory @ dir_chdir - /github/workspace/docs
```

What's going on with the new version of nbdev? It fails if I dont have requirements installed and after basic packages like numpy are included.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.