Afshin Darian 5d9b409777 Workspaces CLI (#5166) преди 6 години
..
README.md 049fc2ab07 Lint fixes преди 6 години
index.html bd9c7df74d Import @jupyterlab/services d64afa08331c3f867b0fd6ffca85bfcd82b8deb1 преди 8 години
index.ts 74eac68b72 Make codebase prettier преди 6 години
main.py 5d9b409777 Workspaces CLI (#5166) преди 6 години
package.json 9a8e1eca9a Publish преди 6 години
tsconfig.json fa50207719 Use lowercase for tsconfig lib and target values преди 6 години
webpack.config.js 74eac68b72 Make codebase prettier преди 6 години

README.md

Jupyter JS Services Browser Example

This example demonstrates using Jupyter JS Services from the browser using Webpack. The python script main.py is used to start a Jupyter Notebook Server and serve the Webpack bundle.

The base url of the notebook server is to the HTML template as part of a JSON script tag. The script starts a python notebook session and interacts with it, printing messages to the browser console.

The example can be installed as npm install and run as python main.py.

Notes:

  • The example is written in TypeScript using ES6 syntax.
  • The TypeScript compiler config is in tsconfig.json.
  • A typings file and a polyfill are required for ES6 promises.
  • The example requires version 4.1+ of the Jupyter Notebook.
  • This example requires its dependencies from the root directory of the repo, but typically the requirements would be directly in package.json