Kaynağa Gözat

Publish 1.0.0a7 python package

dist/jupyterlab-1.0.0a7-py2.py3-none-any.whl
md5: 2c2e169d1ff7d618e7cbede8543f0ade
sha1: b3718e600983dfbd4c5b8671f6acb0a5293be91b
sha256: 2643ae4c90dcded640685ed719122f50d76d9d0d78bc1bc8a3e1823816448ac9

dist/jupyterlab-1.0.0a7.tar.gz
md5: f6783ed302cc15a883d46a30481aee36
sha1: 233777054b8681171c5e632023e5690f1998d81d
sha256: 4001c9781fd9087a605f156902337ebd8c3c40062bb55615ae4acbadc23dba4f
Jason Grout 5 yıl önce
ebeveyn
işleme
65dfc48ba3

+ 1 - 1
.bumpversion.cfg

@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 1, 0, 0, 'alpha', 6
+current_version = 1, 0, 0, 'alpha', 7
 commit = False
 tag = False
 parse = (?P<major>\d+)\,\ (?P<minor>\d+)\,\ (?P<patch>\d+)\,\ \'(?P<release>\S+)\'\,\ (?P<build>\d+)

+ 1 - 1
dev_mode/package.json

@@ -209,7 +209,7 @@
       "url-parse",
       "xterm"
     ],
-    "version": "1.0.0a6",
+    "version": "1.0.0a7",
     "linkedPackages": {
       "@jupyterlab/application": "../packages/application",
       "@jupyterlab/application-extension": "../packages/application-extension",

+ 1 - 1
jupyterlab/_version.py

@@ -12,7 +12,7 @@ VersionInfo = namedtuple('VersionInfo', [
 ])
 
 # DO NOT EDIT THIS DIRECTLY!  It is managed by bumpversion
-version_info = VersionInfo(1, 0, 0, 'alpha', 6)
+version_info = VersionInfo(1, 0, 0, 'alpha', 7)
 
 _specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''}
 

+ 17 - 13
jupyterlab/staging/index.js

@@ -6,13 +6,15 @@
 require('es6-promise/auto');  // polyfill Promise on IE
 
 import {
-  PageConfig, URLExt
+  PageConfig
 } from '@jupyterlab/coreutils';
 
-__webpack_public_path__ = PageConfig.getOption('frontendUrl');
+// eslint-disable-next-line no-undef
+__webpack_public_path__ = PageConfig.getOption('fullStaticUrl') + '/';
 
-// This needs to come after __webpack_public_path__ is set.
-require('font-awesome/css/font-awesome.min.css');
+// This must be after the public path is set.
+// This cannot be extracted because the public path is dynamic.
+require('./imports.css');
 
 /**
  * The main entry point for the application.
@@ -67,6 +69,8 @@ function main() {
 
   // Handle the registered mime extensions.
   var mimeExtensions = [];
+  var extension;
+  var extMod;
   {{#each jupyterlab_mime_extensions}}
   try {
     if (isDeferred('{{key}}')) {
@@ -76,12 +80,12 @@ function main() {
     if (isDisabled('{{@key}}')) {
       disabled.matches.push('{{@key}}');
     } else {
-      var module = require('{{@key}}/{{this}}');
-      var extension = module.default;
+      extMod = require('{{@key}}/{{this}}');
+      extension = extMod.default;
 
       // Handle CommonJS exports.
-      if (!module.hasOwnProperty('__esModule')) {
-        extension = module;
+      if (!extMod.hasOwnProperty('__esModule')) {
+        extension = extMod;
       }
 
       if (Array.isArray(extension)) {
@@ -115,12 +119,12 @@ function main() {
     if (isDisabled('{{@key}}')) {
       disabled.matches.push('{{@key}}');
     } else {
-      module = require('{{@key}}/{{this}}');
-      extension = module.default;
+      extMod = require('{{@key}}/{{this}}');
+      extension = extMod.default;
 
       // Handle CommonJS exports.
-      if (!module.hasOwnProperty('__esModule')) {
-        extension = module;
+      if (!extMod.hasOwnProperty('__esModule')) {
+        extension = extMod;
       }
 
       if (Array.isArray(extension)) {
@@ -169,7 +173,7 @@ function main() {
     var reported = false;
     var timeout = 25000;
 
-    var report = function(errors) {
+    var report = function() {
       if (reported) {
         return;
       }

+ 57 - 55
jupyterlab/staging/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@jupyterlab/application-top",
-  "version": "1.0.0-alpha.10",
+  "version": "1.0.0-alpha.11",
   "private": true,
   "scripts": {
     "build": "webpack",
@@ -12,58 +12,59 @@
     "watch": "webpack --watch"
   },
   "dependencies": {
-    "@jupyterlab/application": "^1.0.0-alpha.9",
-    "@jupyterlab/application-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/apputils": "^1.0.0-alpha.9",
-    "@jupyterlab/apputils-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/codemirror-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/completer-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/console": "^1.0.0-alpha.9",
-    "@jupyterlab/console-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/coreutils": "^3.0.0-alpha.9",
-    "@jupyterlab/csvviewer-extension": "^1.0.0-alpha.10",
-    "@jupyterlab/docmanager": "^1.0.0-alpha.9",
-    "@jupyterlab/docmanager-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/documentsearch-extension": "^1.0.0-alpha.11",
-    "@jupyterlab/extensionmanager": "^1.0.0-alpha.9",
-    "@jupyterlab/extensionmanager-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/faq-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/filebrowser": "^1.0.0-alpha.9",
-    "@jupyterlab/filebrowser-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/fileeditor": "^1.0.0-alpha.9",
-    "@jupyterlab/fileeditor-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/help-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/htmlviewer-extension": "^1.0.0-alpha.10",
-    "@jupyterlab/imageviewer": "^1.0.0-alpha.9",
-    "@jupyterlab/imageviewer-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/inspector-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/javascript-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/json-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/launcher": "^1.0.0-alpha.9",
-    "@jupyterlab/launcher-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/mainmenu-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/markdownviewer-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/mathjax2-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/notebook": "^1.0.0-alpha.10",
-    "@jupyterlab/notebook-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/pdf-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/rendermime": "^1.0.0-alpha.9",
-    "@jupyterlab/rendermime-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/rendermime-interfaces": "^1.3.0-alpha.9",
-    "@jupyterlab/running-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/services": "^4.0.0-alpha.9",
-    "@jupyterlab/settingeditor-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/shortcuts-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/statusbar-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/tabmanager-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/terminal": "^1.0.0-alpha.9",
-    "@jupyterlab/terminal-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/theme-dark-extension": "^1.0.0-alpha.10",
-    "@jupyterlab/theme-light-extension": "^1.0.0-alpha.10",
-    "@jupyterlab/tooltip": "^1.0.0-alpha.9",
-    "@jupyterlab/tooltip-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/vdom-extension": "^1.0.0-alpha.9",
-    "@jupyterlab/vega5-extension": "^1.0.0-alpha.9",
+    "@jupyterlab/application": "^1.0.0-alpha.10",
+    "@jupyterlab/application-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/apputils": "^1.0.0-alpha.10",
+    "@jupyterlab/apputils-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/codemirror-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/completer-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/console": "^1.0.0-alpha.10",
+    "@jupyterlab/console-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/coreutils": "^3.0.0-alpha.10",
+    "@jupyterlab/csvviewer-extension": "^1.0.0-alpha.11",
+    "@jupyterlab/docmanager": "^1.0.0-alpha.10",
+    "@jupyterlab/docmanager-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/documentsearch-extension": "^1.0.0-alpha.12",
+    "@jupyterlab/extensionmanager": "^1.0.0-alpha.10",
+    "@jupyterlab/extensionmanager-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/faq-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/filebrowser": "^1.0.0-alpha.10",
+    "@jupyterlab/filebrowser-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/fileeditor": "^1.0.0-alpha.10",
+    "@jupyterlab/fileeditor-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/help-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/htmlviewer-extension": "^1.0.0-alpha.11",
+    "@jupyterlab/hub-extension": "^1.0.0-alpha.9",
+    "@jupyterlab/imageviewer": "^1.0.0-alpha.10",
+    "@jupyterlab/imageviewer-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/inspector-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/javascript-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/json-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/launcher": "^1.0.0-alpha.10",
+    "@jupyterlab/launcher-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/mainmenu-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/markdownviewer-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/mathjax2-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/notebook": "^1.0.0-alpha.11",
+    "@jupyterlab/notebook-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/pdf-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/rendermime": "^1.0.0-alpha.10",
+    "@jupyterlab/rendermime-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/rendermime-interfaces": "^1.3.0-alpha.10",
+    "@jupyterlab/running-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/services": "^4.0.0-alpha.10",
+    "@jupyterlab/settingeditor-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/shortcuts-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/statusbar-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/tabmanager-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/terminal": "^1.0.0-alpha.10",
+    "@jupyterlab/terminal-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/theme-dark-extension": "^1.0.0-alpha.11",
+    "@jupyterlab/theme-light-extension": "^1.0.0-alpha.11",
+    "@jupyterlab/tooltip": "^1.0.0-alpha.10",
+    "@jupyterlab/tooltip-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/vdom-extension": "^1.0.0-alpha.10",
+    "@jupyterlab/vega5-extension": "^1.0.0-alpha.10",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/application": "^1.6.0",
     "@phosphor/commands": "^1.6.1",
@@ -85,7 +86,7 @@
     "url-parse": "~1.4.3"
   },
   "devDependencies": {
-    "@jupyterlab/buildutils": "^1.0.0-alpha.9",
+    "@jupyterlab/buildutils": "^1.0.0-alpha.10",
     "css-loader": "~2.1.1",
     "duplicate-package-checker-webpack-plugin": "^3.0.0",
     "file-loader": "~3.0.1",
@@ -130,6 +131,7 @@
       "@jupyterlab/fileeditor-extension": "",
       "@jupyterlab/help-extension": "",
       "@jupyterlab/htmlviewer-extension": "",
+      "@jupyterlab/hub-extension": "",
       "@jupyterlab/imageviewer-extension": "",
       "@jupyterlab/inspector-extension": "",
       "@jupyterlab/launcher-extension": "",
@@ -207,7 +209,7 @@
       "url-parse",
       "xterm"
     ],
-    "version": "1.0.0a6",
+    "version": "1.0.0a7",
     "linkedPackages": {},
     "staticDir": "../static"
   }

+ 11 - 0
jupyterlab/staging/templates/403.html

@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <title>403 Forbidden</title>
+</head>
+<body>
+<h2>Sorry ..</h2>
+<p>.. you are not allowed to see this content!</p>
+</body>
+</html>

+ 4 - 0
jupyterlab/staging/templates/template.html

@@ -28,6 +28,10 @@
     var url = location.origin + location.pathname +
       (query !== '?' ? query : '') + location.hash;
 
+    if (url === location.href) {
+      return;
+    }
+
     window.history.replaceState({ }, '', url);
   })();
 </script>

+ 15 - 17
jupyterlab/staging/webpack.config.js

@@ -18,9 +18,18 @@ var package_data = require('./package.json');
 var jlab = package_data.jupyterlab;
 var extensions = jlab.extensions;
 var mimeExtensions = jlab.mimeExtensions;
+var packageNames = Object.keys(mimeExtensions).concat(Object.keys(extensions));
 
+// Ensure a clear build directory.
+var buildDir = path.resolve(jlab.buildDir);
+if (fs.existsSync(buildDir)) {
+  fs.removeSync(buildDir);
+}
+fs.ensureDirSync(buildDir);
+
+// Build the assets
 var extraConfig = Build.ensureAssets({
-  packageNames: Object.keys(mimeExtensions).concat(Object.keys(extensions)),
+  packageNames: packageNames,
   output: jlab.outputDir
 });
 
@@ -33,15 +42,12 @@ var data = {
 };
 var result = template(data);
 
-// Ensure a clear build directory.
-var buildDir = path.resolve(jlab.buildDir);
-if (fs.existsSync(buildDir)) {
-  fs.removeSync(buildDir);
-}
-fs.ensureDirSync(buildDir);
-
 fs.writeFileSync(path.join(buildDir, 'index.out.js'), result);
 fs.copySync('./package.json', path.join(buildDir, 'package.json'));
+fs.copySync(
+  path.join(jlab.outputDir, 'imports.css'),
+  path.join(buildDir, 'imports.css')
+);
 
 // Set up variables for watch mode.
 var localLinked = {};
@@ -86,14 +92,6 @@ JupyterFrontEndPlugin.prototype.apply = function(compiler) {
   compiler.hooks.afterEmit.tap(
     'JupyterFrontEndPlugin',
     function() {
-      // Fix the template output.
-      var indexPath = path.join(buildDir, 'index.html');
-      var indexData = fs.readFileSync(indexPath, 'utf8');
-      indexData = indexData
-        .split('{{page_config.frontendUrl}}/')
-        .join('{{page_config.frontendUrl}}');
-      fs.writeFileSync(indexPath, indexData, 'utf8');
-
       // Copy the static assets.
       var staticDir = jlab.staticDir;
       if (!staticDir) {
@@ -142,7 +140,7 @@ module.exports = [
     },
     output: {
       path: path.resolve(buildDir),
-      publicPath: '{{page_config.frontendUrl}}',
+      publicPath: '{{page_config.fullStaticUrl}}/',
       filename: '[name].[chunkhash].js'
     },
     optimization: {

Dosya farkı çok büyük olduğundan ihmal edildi
+ 442 - 431
jupyterlab/staging/yarn.lock


+ 6 - 6
packages/nbconvert-css/package.json

@@ -42,12 +42,12 @@
     "@jupyterlab/rendermime": "^1.0.0-alpha.10"
   },
   "devDependencies": {
-    "@jupyterlab/apputils": "^1.0.0-alpha.9",
-    "@jupyterlab/cells": "^1.0.0-alpha.10",
-    "@jupyterlab/codemirror": "^1.0.0-alpha.9",
-    "@jupyterlab/notebook": "^1.0.0-alpha.10",
-    "@jupyterlab/outputarea": "^1.0.0-alpha.9",
-    "@jupyterlab/rendermime": "^1.0.0-alpha.9",
+    "@jupyterlab/apputils": "^1.0.0-alpha.10",
+    "@jupyterlab/cells": "^1.0.0-alpha.11",
+    "@jupyterlab/codemirror": "^1.0.0-alpha.10",
+    "@jupyterlab/notebook": "^1.0.0-alpha.11",
+    "@jupyterlab/outputarea": "^1.0.0-alpha.10",
+    "@jupyterlab/rendermime": "^1.0.0-alpha.10",
     "css-loader": "~2.1.1",
     "file-loader": "~3.0.1",
     "mini-css-extract-plugin": "~0.6.0",

+ 1 - 1
setup.py

@@ -133,7 +133,7 @@ setup_args = dict(
 setup_args['install_requires'] = [
     'notebook>=4.3.1',
     'tornado<6',
-    'jupyterlab_server>=0.3.4'
+    'jupyterlab_server~=1.0.0rc0'
 ]
 
 setup_args['extras_require'] = {

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