|
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
src | %!s(int64=3) %!d(string=hai) anos | |
templates | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=6) %!d(string=hai) anos | |
main.py | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=4) %!d(string=hai) anos | |
webpack.config.js | %!s(int64=4) %!d(string=hai) anos |
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:
tsconfig.json
.require
s its dependencies from the root directory of the
repo, but typically the requirements would be directly in package.json