How to make nbviewer display local files?

I have nbviewer installed and working. I see that it has an option --localfilesthat accepts the name of the folder. It says: "Serving local laptops in / home / gb / S 14 / inclass, this could be a security risk"

But I can not understand the format of the URL to make it look for the file there. The code adds a handler for /localfile/(.*), but this does not seem to work.

Does anyone know how to format a name to start loading a local file?

+4
source share
2 answers

After a minute, and it occurs to me that the first page may not support, even if the server does. Of course, http://localhost:5000/localfile/PythonReference.ipynb?create=1displays a local notebook.

+4
source

Going to http: // localhost: 5000 / localfile will display the directory browser, starting from the path you passed to --localfiles; you can just click the file .ipynb.

0
source

Source: https://habr.com/ru/post/1528788/


All Articles