Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up--html works but --http doesn't #33
Comments
This comment has been minimized.
This comment has been minimized.
|
After git clone, I ran
If I don't install plotly_express, I get the following error:
But this is due to pdoc importing the documented module, plotly_express using relative imports, and Python not honoring relative imports from non-packages (i.e. filesystem paths). |
This comment has been minimized.
This comment has been minimized.
|
Right, I was trying this without installing locally. I guess this is just not a supported use case? |
nicolaskruchten
closed this
Feb 17, 2019
kernc
reopened this
Feb 17, 2019
This comment has been minimized.
This comment has been minimized.
|
I see. The discrepancy between |
This comment has been minimized.
This comment has been minimized.
|
It has to do with these lines Lines 333 to 334 in 53544d8 I guess we can just move them a few lines up ... |
nicolaskruchten commentedFeb 15, 2019
Expected Behavior
Static and live generation should work the same way.
Actual Behavior
In my project I can run
pdoc my_module --htmland it runs fine, generating HTML etc but whilepdoc my_module --http localhost:8080starts the web server, the page fails to render withModuleNotFoundError: No module named 'my_module'Steps to Reproduce
git clone git@github.com:plotly/plotly_express.git(maybe install some deps)pdoc plotly_express --htmlvspdoc plotly_express --http localhost:8080