Building standalone dashboards

Using Node.js, developers have come up with a way to host your dashboard/notebook without Jupyter on jupyter-dashboard-server.

Installation requires installing Node.js (as the server is written in Node.js). This is a larger installation set.

Once you have Node.js installed, one of the tools installed is npm-node product manager. You can use npm to install the dashboard server with the following command:

npm install -g jupyter-dashboards-server  

Once installed you can run the server with the following command:

C:UsersDan>jupyter-dashboards-server --KERNEL_GATEWAY_URL=http://my.gateway.com  

mygateway.com is a dummy. You would use your gateway server (if needed). At this point the server is running on the environment you mentioned and will output a few lines:

Using generated SESSION_SECRET_TOKEN
Jupyter dashboard server listening on 127.0.0.1:3000  

You can open a browser to the URL (http://127.0.0.1:3000/dashboards) and see what the server console looks like:

As for developing a dashboard you can host on the server, we need to install more:

conda install jupyter_dashboards -c conda-forge  

Then enable the extension (it is a notebook extension):

jupyter nbextension enable jupyter_dashboards --py --sys-prefix  

You then need to install the layout extension using the following commands:

pip install jupyter_dashboards_bundlers
jupyter bundlerextension enable --sys-prefix --py dashboards_bundlers  

At this point you can upload your dashboard notebook file using the following command:

POST /_api/notebooks/[PATH/]NAME  

Where the URL is prefixed with the hosting site you are using, PATH is optional (would default to the root location), and NAME is as you determine.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.216.163