Browse Source

Merge pull request #95 from blink1073/cleanup

Clean up notebook scrolling and do not cache example index.html
Dave Willmer 9 years ago
parent
commit
5e77bb5986
4 changed files with 10 additions and 3 deletions
  1. 2 1
      examples/lab/main.py
  2. 2 1
      examples/lab/package.json
  3. 1 1
      package.json
  4. 5 0
      src/default-theme/index.css

+ 2 - 1
examples/lab/main.py

@@ -68,7 +68,8 @@ def main(argv):
     ]
 
     app = tornado.web.Application(handlers, static_path='build',
-                                  template_path='.')
+                                  template_path='.',
+                                  compiled_template_cache=False)
 
     app.listen(PORT, 'localhost')
     loop = tornado.ioloop.IOLoop.instance()

+ 2 - 1
examples/lab/package.json

@@ -2,6 +2,7 @@
   "private": true,
   "name": "jupyter-js-plugins-example",
   "dependencies": {
+    "jupyter-js-notebook": "^0.9.1",
     "jupyter-js-plugins": "file:..",
     "phosphide": "^0.9.0"
   },
@@ -9,7 +10,7 @@
     "build": "webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "npm dedupe",
-    "update": "rimraf node_modules/jupyter-js-ui && npm install",
+    "update": "rimraf node_modules/jupyter-js-plugins && npm install",
     "watch:src": "watch 'npm run build' src --wait 5",
     "watch": "concurrently 'npm run watch:src' 'python main.py'"
   },

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
     "codemirror": "^5.10.0",
     "jquery": "^2.2.0",
     "jquery-ui": "^1.10.5",
-    "jupyter-js-notebook": "^0.9.0",
+    "jupyter-js-notebook": "^0.9.1",
     "jupyter-js-services": "^0.5.0",
     "jupyter-js-ui": "^0.0.3",
     "jupyter-js-utils": "^0.3.0",

+ 5 - 0
src/default-theme/index.css

@@ -34,6 +34,11 @@ body {
 }
 
 
+.jp-NotebookContainer {
+  overflow-y: auto;
+}
+
+
 .jp-FileBrowser {
   min-width: 300px;
 }