python-3.x - 如何让 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
我的存储库:
解决方案
输入存储库 URL、Git 分支和笔记本路径后,执行以下操作:
在最后一个选项中显示:“复制下面的文本,然后粘贴到您的自述文件中以显示活页夹徽章”,复制第一个链接。
它看起来像这样:(https://mybinder.org/badge_logo.svg)(https://mybinder.org/v2/gh/username/repository/master?filepath=Analysis.ipynb)
在“https://mybinder.org/v2/gh/username/repository/master?filepath=Analysis.ipynb”中,将“?filepath=”替换为“?urlpath=apps%2F”。
这是 Jupyter Notebook 的 Web 应用程序版本的链接。
推荐阅读
- node.js - 从未定义的不同文件上下文调用函数
- javascript - 使用 SVG 和车把的动态发票设计
- html - iFrame 没有并排响应(当屏幕变小时,内联块中断)
- sql - 在plsql的一个场景中获取数据
- android - 在内部方法中访问 Val
- php - 使用“DisplayCustomization”挂钩
- javascript - 甜蜜警报,但按钮在最初几秒钟内被禁用
- angular - 如何使用带有参数的选择器在效果中选择表单 ngrx 存储
- mesh - 用于测试从 3d 实体中提取属性的程序的网格(stl 文件)源?
- android - recyclerview.addOnItemTouchListener 我需要将多个产品添加到购物车 recyclerview