Skip to content

Instructions on building the docs don't mention that notebook needs to be installed as well #5741

@mriedem

Description

@mriedem

I was following the instructions on building the documentation [1] using the pip install version (not conda). I was doing it within a virtualenv called .docs. I pip installed docs/doc-requirements.txt per the instructions and then ran make html which failed because notebook isn't installed:

(.docs) osboxes@osboxes:~/jupyter/notebook/docs$ make html
python3 autogen_config.py
Traceback (most recent call last):
  File "autogen_config.py", line 4, in <module>
    from notebook.notebookapp import NotebookApp
ModuleNotFoundError: No module named 'notebook'
Makefile:62: recipe for target 'source/config.rst' failed
make: *** [source/config.rst] Error 1

The fix is simple, I just did pip install . from the root of the notebook project directory and that got me past that issue, but assume it should be called out in the docs as one of the steps in building the documentation.

[1] https://github.com/jupyter/notebook/blob/master/CONTRIBUTING.rst#building-the-documentation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions