Kaynağa Gözat

Remove the app example

Steven Silvester 7 yıl önce
ebeveyn
işleme
d8fa392760

+ 0 - 4
docs/extensions_dev.md

@@ -15,10 +15,6 @@ A JupyterLab application is comprised of:
 - A core Application object
 - Plugins
 
-A full example of an application is contained [here](https://github.com/jupyterlab/jupyterlab/tree/master/examples/app).
-Looking at the `index.js` file, you can see the extensions
-used in the tutorial example.
-
 ## Plugins
 A plugin adds a core functionality to the application:
 - A plugin can require other plugins for operation.

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 88
examples/app/example.ipynb


+ 0 - 15
examples/app/index.html

@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>Jupyter Plugins Demo</title>
-  <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML-full,Safe&amp;delayStartupUntil=configured"></script>
-</head>
-<body>
-  <script id='jupyter-config-data' type="application/json">{ 
-  "baseUrl": "{{base_url}}",
-  "wsUrl": "{{ws_url}}",
-  "terminalsAvailable": "{{terminals_available}}"
- }</script>
-  <script src="example/bundle.js" main="index"></script>
-</body>
-</html>

+ 0 - 43
examples/app/index.js

@@ -1,43 +0,0 @@
-// Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
-
-// ES6 Promise polyfill
-require('es6-promise/auto');
-
-// Load the core theming before any other package.
-require('@jupyterlab/theme-light-extension/style/embed.css');
-
-var JupyterLab = require('@jupyterlab/application').JupyterLab;
-
-
-var mods = [
-  require('@jupyterlab/application-extension'),
-  require('@jupyterlab/apputils-extension'),
-  require('@jupyterlab/codemirror-extension'),
-  require('@jupyterlab/completer-extension'),
-  require('@jupyterlab/console-extension'),
-  require('@jupyterlab/csvviewer-extension'),
-  require('@jupyterlab/docmanager-extension'),
-  require('@jupyterlab/fileeditor-extension'),
-  require('@jupyterlab/faq-extension'),
-  require('@jupyterlab/filebrowser-extension'),
-  require('@jupyterlab/help-extension'),
-  require('@jupyterlab/imageviewer-extension'),
-  require('@jupyterlab/inspector-extension'),
-  require('@jupyterlab/launcher-extension'),
-  require('@jupyterlab/markdownviewer-extension'),
-  require('@jupyterlab/notebook-extension'),
-  require('@jupyterlab/running-extension'),
-  require('@jupyterlab/settingeditor-extension'),
-  require('@jupyterlab/shortcuts-extension'),
-  require('@jupyterlab/tabmanager-extension'),
-  require('@jupyterlab/terminal-extension'),
-  require('@jupyterlab/tooltip-extension')
-];
-
-
-window.onload = function() {
-  var lab = new JupyterLab({ namespace: 'lab-example' });
-  lab.registerPluginModules(mods);
-  lab.start();
-}

BIN
examples/app/jupyter.png


+ 0 - 44
examples/app/main.py

@@ -1,44 +0,0 @@
-"""
-Copyright (c) Jupyter Development Team.
-Distributed under the terms of the Modified BSD License.
-"""
-
-import os
-from jinja2 import FileSystemLoader
-from notebook.base.handlers import IPythonHandler, FileFindHandler
-from notebook.notebookapp import NotebookApp
-from traitlets import Unicode
-
-
-class ExampleHandler(IPythonHandler):
-    """Handle requests between the main app page and notebook server."""
-
-    def get(self):
-        """Get the main page for the application's interface."""
-        return self.write(self.render_template("index.html",
-            static=self.static_url, base_url=self.base_url,
-            terminals_available=self.settings['terminals_available']))
-
-    def get_template(self, name):
-        loader = FileSystemLoader(os.getcwd())
-        return loader.load(self.settings['jinja2_env'], name)
-
-
-class ExampleApp(NotebookApp):
-
-    default_url = Unicode('/example')
-
-    def init_webapp(self):
-        """initialize tornado webapp and httpserver.
-        """
-        super(ExampleApp, self).init_webapp()
-        default_handlers = [
-            (r'/example/?', ExampleHandler),
-            (r"/example/(.*)", FileFindHandler,
-                {'path': 'build'}),
-        ]
-        self.web_app.add_handlers(".*$", default_handlers)
-
-
-if __name__ == '__main__':
-    ExampleApp.launch_instance()

+ 0 - 44
examples/app/package.json

@@ -1,44 +0,0 @@
-{
-  "private": true,
-  "name": "@jupyterlab/example-app",
-  "scripts": {
-    "build": "webpack",
-    "clean": "rimraf build"
-  },
-  "dependencies": {
-    "@jupyterlab/application": "^0.9.0",
-    "@jupyterlab/application-extension": "^0.9.0",
-    "@jupyterlab/apputils-extension": "^0.9.0",
-    "@jupyterlab/codemirror-extension": "^0.9.0",
-    "@jupyterlab/completer-extension": "^0.9.0",
-    "@jupyterlab/console-extension": "^0.9.0",
-    "@jupyterlab/csvviewer-extension": "^0.9.0",
-    "@jupyterlab/docmanager-extension": "^0.9.0",
-    "@jupyterlab/faq-extension": "^0.9.0",
-    "@jupyterlab/filebrowser-extension": "^0.9.0",
-    "@jupyterlab/fileeditor-extension": "^0.9.0",
-    "@jupyterlab/help-extension": "^0.9.0",
-    "@jupyterlab/imageviewer-extension": "^0.9.0",
-    "@jupyterlab/inspector-extension": "^0.9.0",
-    "@jupyterlab/launcher-extension": "^0.9.0",
-    "@jupyterlab/markdownviewer-extension": "^0.9.0",
-    "@jupyterlab/notebook-extension": "^0.9.0",
-    "@jupyterlab/running-extension": "^0.9.0",
-    "@jupyterlab/settingeditor-extension": "^0.4.0",
-    "@jupyterlab/shortcuts-extension": "^0.9.0",
-    "@jupyterlab/tabmanager-extension": "^0.9.0",
-    "@jupyterlab/terminal-extension": "^0.9.0",
-    "@jupyterlab/theme-light-extension": "^0.9.0",
-    "@jupyterlab/tooltip-extension": "^0.9.0",
-    "es6-promise": "^4.1.0"
-  },
-  "devDependencies": {
-    "file-loader": "^0.10.1",
-    "rimraf": "^2.5.2",
-    "style-loader": "^0.13.1",
-    "url-loader": "^0.5.7",
-    "watch": "^1.0.2",
-    "webpack": "^2.2.1"
-  },
-  "version": "0.10.0"
-}

+ 0 - 35
examples/app/webpack.config.js

@@ -1,35 +0,0 @@
-// Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
-
-// Support for Node 0.10
-// See https://github.com/webpack/css-loader/issues/144
-require('es6-promise').polyfill();
-
-module.exports = {
-  entry: './index.js',
-  output: {
-    path: __dirname + '/build',
-    filename: 'bundle.js',
-    publicPath: 'lab/'
-  },
-  node: {
-    fs: 'empty'
-  },
-  bail: true,
-  devtool: 'source-map',
-  module: {
-    rules: [
-      { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] },
-      { test: /\.json$/, use: 'json-loader' },
-      { test: /\.html$/, use: 'file-loader' },
-      // jquery-ui loads some images
-      { test: /\.(jpg|png|gif)$/, use: 'file-loader' },
-      // required to load font-awesome
-      { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=application/font-woff' },
-      { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=application/font-woff' },
-      { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=application/octet-stream' },
-      { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, use: 'file-loader' },
-      { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=image/svg+xml' }
-    ]
-  }
-}

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor