How to make myBinder.org launch directly into Appmode

[亡魂溺海] 提交于 2020-03-05 07:38:07

问题


I've made a simple app in jupyter notebook and I'm trying to make a shareable link directly into the app using mybinder.org.

However, my link takes the user to the notebook and then the user has to manually press the appmode button at the top to switch to appmode. I have seen examples of binders that directly take the user into the Appmode instead of the notebook. How can I make mine do the same?

Example of link that takes you directly to app:

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

My link:

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

I have tried editing my environment.yml file but I cannot get it to do what I want. My environment. yml file is

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

This is the repository that produced the app above:

https://github.com/oschuett/appmode

My repository:

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


回答1:


You append both apps and the specific notebook to open onto the typical URL that you point users at for launching a session with your repo via MyBinder. It describes how to do it under ‘Decscription’ section at https://github.com/oschuett/appmode#description . An example is in the URL of the launch binder button at https://github.com/oschuett/appmode.

In your case the link is as follows

https://mybinder.org/v2/gh/fahimnis/RelPermApp/master?urlpath=%2Fapps%2FRelPermApp.ipynb

Note how the typical launch URL of https://mybinder.org/v2/gh/fahimnis/Practice-Project/master has been appended with the two items.



来源:https://stackoverflow.com/questions/58151628/how-to-make-mybinder-org-launch-directly-into-appmode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!