首页 > 解决方案 > 如何让 myBinder.org 直接启动到 Appmode

问题描述

我在 jupyter notebook 中制作了一个简单的应用程序,我正在尝试使用 mybinder.org 将可共享链接直接创建到应用程序中。

但是,我的链接将用户带到笔记本,然后用户必须手动按下顶部的 appmode 按钮才能切换到 appmode。我见过直接将用户带入 Appmode 而不是 notebook 的活页夹示例。我怎样才能让我的也这样做?

将您直接带到应用程序的链接示例:

https://mybinder.org/v2/gh/oschuett/appmode/master?urlpath=%2Fapps%2Fexample_app.ipynb

我的链接:

https://mybinder.org/v2/gh/fahimnis/Practice-Project.git/master

我已经尝试编辑我的 environment.yml 文件,但我无法让它做我想做的事。我的环境。yml 文件是

channels:
  - conda-forge
dependencies:
  - python 3.7
  - numpy
  - matplotlib
  - appmode

这是生成上述应用程序的存储库:

https://github.com/oschuett/appmode

我的存储库:

https://github.com/fahimnis/Practice-Project

标签: python-3.xjupyter-notebookandroid-binder

解决方案


输入存储库 URL、Git 分支和笔记本路径后,执行以下操作:

  1. 在最后一个选项中显示:“复制下面的文本,然后粘贴到您的自述文件中以显示活页夹徽章”,复制第一个链接。

  2. 它看起来像这样:(https://mybinder.org/badge_logo.svg)(https://mybinder.org/v2/gh/username/repository/master?filepath=Analysis.ipynb

  3. 在“https://mybinder.org/v2/gh/username/repository/master?filepath=Analysis.ipynb”中,将“?filepath=”替换为“?urlpath=apps%2F”。

这是 Jupyter Notebook 的 Web 应用程序版本的链接。


推荐阅读