在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jupyter-attic/dashboards_server开源软件地址:https://github.com/jupyter-attic/dashboards_server开源编程语言:JavaScript 48.7%开源软件介绍:[RETIRED] Jupyter Dashboards ServerThis project has been retired. See the proposal to move the project to jupyter-attic, announcement of the proposal on the mailing list, and Steering Council vote on the proposal PR for more information. A NodeJS application that can display Jupyter notebooks as dynamic dashboards outside of the Jupyter Notebook server. The Jupyter Incubator Dashboards effort covers:
This repository focuses on (3) above, while jupyter-incubator/dashboards handles (1) and jupyter-incubator/dashboards_bundlers implements (2). See https://github.com/jupyter-incubator/dashboards/wiki for an overview of the entire dashboard incubation effort. What it Gives You
The qualification in [1] stems from the fact that supporting one-click deploy of notebooks with arbitrary JavaScript and kernel dependencies is a "Really Hard Problem." We've invested effort in getting these dashboard, visualization, and widget libraries working in the dashboard server.
If you try another library and find that it does not work in the dashboard server, see the wiki page about Widget Support below for steps you might take to resolve the problem. Install itInstall Node 5.x and npm 3.5.x. Use
You can then run the dashboard server from the command line. See the next section about how to install and configure the other prerequisite components.
Run ItThe dashboard server is meant to support the layout-bundler-deploy workflow described on the project overview page. This workflow requires multiple components working in concert. To bring all of these pieces together, you can start with the recipes in the jupyter-incubator/dashboards_setup repo. (We'll gladly take PRs that reduce the complexity of getting everything set up!) Alternatively, you can clone this git repository and build the Docker images we
use for development in order to run the demos in
Run Behind a ProxyThe dashboards server can be run behind a reverse proxy. In order to do so, you will need to set the following options as command line args or in environment vars.
For example: # allow proxying of "http://proxy_host/db/..." to "http://dashboards_host/db/..."
jupyter-dashboards-server --TRUST_PROXY=true --BASE_URL=/db --KERNEL_GATEWAY_URL=http://my.gateway.com/
# allow proxying of "http://proxy_host/db/..." to "http://dashboards_host/..."
jupyter-dashboards-server --TRUST_PROXY=true --BASE_URL='[/db]' --KERNEL_GATEWAY_URL=http://my.gateway.com/ Develop ItTo setup a development environment, install these minimum versions on your host machine.
With these installed, you can use the Setup# re-run if the Dockerfile.kernel changes
make kernel-gateway-image
# re-run if package.json changes
make dev-install
# run if you want to try the preliminary jupyter-incubator/declarativewidgets support
make examples Dashboard Server w/ Auto Restart# uses gulp:watch to restart on any changes
make dev
# mac shortcut for visiting URL in a browser
open http://127.0.0.1:3000 Dashboard Server w/ Auto Restart and Debug Console Loggingmake dev-logging
# mac shortcut for visiting URL in a browser
open http://127.0.0.1:3000 Dashboard Server w/ Auto Restart and Remote Debuggingnpm install -g node-inspector
make dev-debug
# a browser tab should open with the debugger visible
# refresh if it errors: the server might not be running yet Dashboard Server w/ Auto Restart and Form Authmake dev USERNAME=admin PASSWORD=password
# mac shortcut for visiting URL in a browser
open http://127.0.0.1:3000 See the Authentication wiki page for information about configuring alternative authentication mechanisms. Dashboard Server w/ Auto Restart and Self-Signed HTTPS Certificatemake certs
make dev HTTPS_KEY_FILE=certs/server.pem HTTPS_CERT_FILE=certs/server.pem
# mac shortcut for visiting URL in a browser
open https://127.0.0.1:3001 Dashboard Server Tests# unit tests
make test
# backend integration tests
make integration-test
# installation tests
make install-test Technical DetailsSee the wiki attached to this project for additional technical details including the server API, authentication plugins, adding support for new widgets, and more. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论