Eric Charles dc44a1c3c4 Use favicons provided by jupyter_server 4 jaren geleden
..
src dd548a35e5 Set __webpack_public_path__ without triggering lint errors. 5 jaren geleden
templates dc44a1c3c4 Use favicons provided by jupyter_server 4 jaren geleden
tmp e1526fb619 examples tests greeen 5 jaren geleden
README.md 049fc2ab07 Lint fixes 6 jaren geleden
main.py a97a214723 wip update how examples are run 4 jaren geleden
package.json 054e748f0a Upgrade to Typescript 4 4 jaren geleden
tsconfig.json 12914baf82 fix up ensure package and repo 4 jaren geleden
webpack.config.js b23d98c98d wip add automated tests for examples 6 jaren geleden

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