当前位置:网站首页>Littlest jupyterhub| 02 using nbgitpuller to distribute shared files
Littlest jupyterhub| 02 using nbgitpuller to distribute shared files
2020-11-08 00:43:00 【Steamed pork with soy sauce-】
In the use of JupyterHub when , A common requirement is to give users / Students distribute data and sample code , Generally speaking, we want to make students / Users can :
- Easy access to the latest version of experimental data and code
- Don't worry about losing your homework , Even if the teacher changes the content , It doesn't cover the students' changes
- There is no need to manually handle merge conflicts or other complex operations
Corresponding , managers / Teachers should :
- Use modern collaborative version control tools to write and store instructional materials , at present Git It's the best tool
nbgitpuller It's a Jupyter Notebook Expand , Can help achieve the above functions
This tutorial will guide you in creating a magic nbgitpuller link , bring JupyterHub Of users can click on the link , Directly from the designated git repository For the latest version of the material
-
00 Pre configuration requirements
- Use Littlest JupyterHub Installed JupyterHub
-
It needs to be distributed git Warehouse
-
01 Generate a nbgitpuller link
Use a based on Binder The application of the link is generated online , The operation steps are: :
1、 Open the link mybinder.org based application, Wait for the application to compile
2、 Enter the relevant information in the blank box
branch: What to pull git The branch of the project
hub_url: Own server Jupyter Hub Of url
repo_url: What to pull git Project url
urlpath: Need from git In the project Pull the file route

When you're done typing , You can see a link generated below , By clicking on the link, users can distribute the project to their respective environments
3、 Manually edit sharing links , The link is organized as :
http://<my-jhub-address>/hub/user-redirect/git-pull?repo=<your-repo-url>&branch=<your-branch-name>&subPath=<subPath>&app=<notebook | lab>
repo:git Links to projects
branch: The branch of the project , The default is master
subPath: The directory within the project to be launched after cloning / The path of the notebook . The default is to open the link Git The root directory of the warehouse
app: Choose which application view to open (Jupyter Notebook/ Jupyter Lab) This parameter is optional , The default is environment variable NBGITPULLER_APP Value , If there is no definition , The default is Notebook
urlPath: If you specify urlPath,app and subPath Will be covered , And redirect to the specified path .
thus , Distribution links are made , This link can be shared with users in various ways / Students !
-
02 The user clicks on the link
1、 When the user clicks on the link and logs in Jupyter Hub after , You can see the progress bar as shown in the figure below , At this time, remote pull and merge operations are being performed automatically

2、 Final , Users enter their own environment , You can see that the project has been placed in the file directory !

The next section is about nbgitpuller Specific characteristics of :)
Reference link :
https://tljh.jupyter.org/en/latest/howto/content/nbgitpuller.html
https://github.com/jupyterhub/nbgitpuller#constructing-the-nbgitpuller-url
版权声明
本文为[Steamed pork with soy sauce-]所创,转载请带上原文链接,感谢
边栏推荐
- Goland 编写含有template的程序
- 数据库基本操作
- Face recognition: attack types and anti spoofing techniques
- 什么都2020了,LINQ查询你还在用表达式树
- QT hybrid Python development technology: Python introduction, hybrid process and demo
- Learn Scala if Else statement
- 1.深入Istio:Sidecar自动注入如何实现的?
- 面部识别:攻击类型和反欺骗技术
- Writing method of field and field comparison condition in where condition in thinkphpp6
- About the promotion of the whole stack of engineers, from the introduction to give up the secret arts, do not click in to have a look?
猜你喜欢

Android 9.0/P WebView 多进程使用的问题

PerconaXtraDBCluster8.0 最详尽用法指南

C++基础知识篇:C++ 基本语法

2020天翼智能生态博览会中国电信宣布5G SA正式规模商用

什么你的电脑太渣?这几招包你搞定! (Win10优化教程)

WPF 关于绘图个人总结

Privacy violation and null dereference of fortify vulnerability

UCGUI简介

Get tree menu list

QT hybrid Python development technology: Python introduction, hybrid process and demo
随机推荐
Get tree menu list
Qt混合Python开发技术:Python介绍、混合过程和Demo
接口
Android Basics - RadioButton (radio button)
手撕算法-手写单例模式
Assembly function MCALL systemstack asmcgocal system call
The emergence and significance of micro service
Basic knowledge of C + +
Web Security (4) -- XSS attack
ROS learning: remote start ROS node
1. In depth istio: how is sidecar auto injection realized?
在Ubuntu上体验最新版本EROFS
android基础-RadioButton(单选按钮)
GET,POST,PUT,DELETE,OPTIONS用法与说明
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
Judging whether paths intersect or not by leetcode
Delphi10's rest.json And system.json Step on the pit
Problems of Android 9.0/p WebView multi process usage
Summary of knowledge points of Jingtao project