title: Is it possible to host nbviewer locally?
body: <p>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 one up on Heroku but this will not work for me. Has anyone attempted this? Is it even worth the effort? Any other alternatives? Thanks.  </p>
  
  <p>Steps to get nbviewer running on your local machine:</p>
  
  <p><em><strong>Step1:</em></strong> Download nbviewer from github<br>
  <strong><em>Step2:</em></strong> Download nbconvert from github<br>
  <strong><em>Step3:</em></strong> Place nbconvert contents into the "nbconvert" folder inside nbviewer   </p>
  
  <p><em><strong>Step4:</em></strong> Get required libraries<br>
  easy_install Flask==0.9<br>
  easy_install Flask-Markdown<br>
  easy_install requests<br>
  easy_install Pygments (comes with python xy)<br>
  easy_install Markdown==2.2.0<br>
  easy_install pylibmc==1.2.3<br>
  easy_install tornado<br>
  easy_install newrelic (failed to install optional c extension but think this is ok)<br>
  easy_install pyzmq (comes with python xy)  </p>
  
  <p><em><strong>Step5:</em></strong> Edit gist.py<br>
  <strong><em>Comment out all these lines:</em></strong>  </p>
  
  <pre><code>#from flask.ext.cache import Cache line 17   
  #from lib.MemcachedMultipart import multipartmemecached line 20  
  #cache = Cache(app, config=config) line 63  
  #@cache.cached(5*hours) line 92  
  #@cache.cached(5*hours) line 107  
  #@cache.cached(5*hours) line 112  
  #@cache.cached(5*hours) line 117  
  #@cache.cached(5*hours) line 122  
  #@cache.cached(5*hours) line 127  
  #@cache.cached(1*minutes) line 133  
  #@cache.memoize() line 177  
  #@cache.memoize(10*minutes) line 201  
  </code></pre>
  
  <p><em><strong>Step6:</em></strong> Run app.py<br>
  <strong><em>Step7:</em></strong> got to localhost:5000  </p>
  
  <p>How does one deal with authentication issues? (notebooks are in a repo that is password protected)<br>
  ERROR: Failed request: GET http svn/BizIntel/Trunk/notebook.ipynb: 401 Authorization Required</p>
  
  <p>Answer: http username:password@svn/BizIntel/Trunk/notebook.ipynb</p>
  
  <p>enjoy!</p>