当前位置:网站首页>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-]所创,转载请带上原文链接,感谢
边栏推荐
- 关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?
- A compilation bug brought by vs2015 Update1 update [existing solutions]
- High concurrency in ngnix cluster
- Everything is 2020, LINQ query you are still using expression tree
- Cpp(二) 创建Cpp工程
- 团灭 LeetCode 股票买卖问题
- 一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
- CPP (4) boost installation and basic use for Mac
- Go之发送钉钉和邮箱
- Insight -- the application of sanet in arbitrary style transfer
猜你喜欢

Hand tearing algorithm - handwritten singleton mode

IDEA-项目未自动生成 .iml 文件

Animation techniques and details you may not know

GoLand writes a program with template

微信小程序request报400错误 @RequestBody接收不到

QT hybrid Python development technology: Python introduction, hybrid process and demo

UCGUI简介

关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?

Experience the latest version of erofs on Ubuntu

学习Scala IF…ELSE 语句
随机推荐
Web安全(四)---XSS攻击
On the concurrency of update operation
使用jsDelivr加速你的网站
高并发,你真的理解透彻了吗?
Web安全(三)---CSRF攻击
Introduction to ucgui
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
Goland 编写含有template的程序
Judging whether paths intersect or not by leetcode
CPP (4) boost installation and basic use for Mac
2020-11-07:已知一个正整数数组,两个数相加等于N并且一定存在,如何找到两个数相乘最小的两个数?
Brief history of computer
Static + code block + polymorphism + exception
汇编函数mcall systemstack asmcgocall syscall
C++在C的基础上改进了哪些细节
Data transmission of asynchronous serial communication controlled by group bus communication
学习Scala IF…ELSE 语句
leetcode之判断路径是否相交
High concurrency in ngnix cluster
Windows subsystem Ubuntu installation