voila-dashboards / voici

Voici turns any Jupyter Notebook into a static web application
https://voici.readthedocs.io/
Other
143 stars 8 forks source link

Redirect initial URI to ipynb file or directory of ipynb files #94

Closed glw closed 5 months ago

glw commented 9 months ago

Description

After starting the python server python -m http.server the URI takes you to http://localhost:8000/lab/index.html which displays as a "file not found". Could the URI redirect to a ipynb file if only one exists or to a directory of ipynb files where the user selects the relevant file?

Reproduce

  1. voici build --contents notebooks
  2. cd _output
  3. start server python -m http.server
  4. Go to URI http://localhost:8000/lab/index.html

Expected behavior

URI should take you to directory of ipynb files or straight to displaying a ipynb file.

Context

Troubleshoot Output

Work around is to go to base URI http://localhost:8000. This presents you a directory of ipynb files which can then be opened in browser.

glw commented 9 months ago

Checked the voici-demo repo and that redirects to the directory correctly.

trungleduc commented 8 months ago

Hi, can you try with Voici 0.5.0?