【问题标题】:How to share just jupyter notebook dashboard to someone with out letting them access code?如何在不让他们访问代码的情况下将 jupyter notebook 仪表板分享给某人?
【发布时间】:2017-07-02 17:15:32
【问题描述】:

所以,我在网上找到了一个演示 jupyter notebook,它带有用于调整图形输入的切换开关。我想与某人共享此仪表板,而不共享其背后运行的代码。

我该怎么做?我对 Jupyter Dashboards 部署非常陌生。

我看过教程,我看到“文件”下有这个选项“部署”(文件->部署为->本地仪表板。)

我在网上找到的 Jupyter 笔记本示例在此处提供了“部署为本地仪表板”选项,而我的 jupyter 没有该选项。

A Notebook I found online with "Deploy" as option which I don't have

【问题讨论】:

    标签: python jupyter-notebook ipython-notebook data-science jupyterhub


    【解决方案1】:

    为了“部署”仪表板,您需要安装 dashboards_bundlers 包并为 Jupyter 笔记本启用仪表板捆绑器扩展。这是您的虚拟环境/conda env 中的一次性活动。

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

    注意:这些 dashboard_bundlers 是 Jupyter Dashboards 生态系统的一部分,其中包括:

    1. Jupyter dashboards,用于在报告/网格布局中安排笔记本的降价和输出(例如绘图)
    2. 用于将笔记本部署到的 Jupyter 仪表板服务器
    3. 上面的捆绑器扩展,有助于部署本地 轻松记事本 或者,您可以使用 ipywidgets 或 jupyter_declarativewidgets,通过引入下拉菜单、文本选择、复选框小部件等,让您的 Jupyter 仪表板更加非程序员友好。

    这些以前处于 jupyter-incubator 模式,但我认为它们在今年早些时候被转移到主流 repo。

    【讨论】:

    • 谢谢!我试过这个。即使在那之后我也无法将它作为单独的服务器运行。不过我有仪表板视图。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-28
    • 1970-01-01
    • 2021-05-16
    相关资源
    最近更新 更多