Is it possible to host nbviewer locally?

后端 未结 1 831
死守一世寂寞
死守一世寂寞 2020-12-16 05:14

I want to bring nbviewer to my job. Because I am not able to share company data (place it on github), I will need to install nbviewer locally. There are instructions to set

1条回答
  •  伪装坚强ぢ
    2020-12-16 05:51

    Yes, nbviewer can be installed locally, that usually how we develop it. Yon can use heroku foreman if you want a setup close to heroku one with autorestart on your own machine.

    If you want something easy, just clone nbviewer, install the dependencies in requirements.txt and run python app.py (maybe a submodule to git update. There might be a few environement variable to set like memcached, but you should be able to disable it if needed.

    You can then open you browser to localhost:5000 and you should have your own version of nbviewer running locally.

    It will not remove the necessity to have the ipynb file accessible through a local url for it to work, but if it's installed behind company firewall, that shouldn't be a problem.

    Feel free to open issues on github if needed.

    0 讨论(0)
提交回复
热议问题