jupyter / dashboards_server

[RETIRED] Server that runs and renders Jupyter notebooks as interactive dashboards
Other
181 stars 48 forks source link

A way to break notebook cache #208

Closed parente closed 8 years ago

parente commented 8 years ago

Notebooks are cached in memory after the first time they are loaded for viewing as dashboards. The cache is only invalidated if a new version of the notebook is POSTed to /_api/notebooks. However, notebooks might be deployed by simply copying them into place on disk, requiring another way to invalidate cache.

Ideas:

jhpedemonte commented 8 years ago

Would this only be available during development (i.e one of the make dev* targets)? I would be worried about making this available for production, where anyone could access it.

parente commented 8 years ago

Admins need something in production when they move dashboard files around on disk underneath the server. The REST API is nice when you've gone through all the trouble of setting up the bundler to talk to the dashboard server. But in some cases, that's too much effort to setup and you just want download the bundle and drop it into place. Requiring a full dashboard server reset just to deal with busting the cache is bad.

jhpedemonte commented 8 years ago

Pairing w/ @jameslmartin. We're going to implement the following:

  1. Add DELETE /cache(/*) to either delete full cache (no path specified) or just for given path.
  2. Create shell script for automating REST invocation to clear cache.
jhpedemonte commented 8 years ago

Submitted PR which implements both of the tasks outlined in the previous comment.