如何下载GitHub上的ipynb文件,在GitHub 上下载指定的文件夹的两种方法

本文详细介绍了如何从GitHub上下载.ipynb文件并使用Jupyter打开,以及下载整个项目或特定文件夹的方法。对于.ipynb文件,可以通过浏览器打开raw格式,保存为.ipynb后用Jupyter打开。下载指定文件夹可通过修改GitURL成SVNURL,或者使用DownGit网站进行快捷操作。
摘要由CSDN通过智能技术生成

如何下载GitHub上的ipynb文件

本文介绍如何将github上的ipynb文件下载到本地,并用jupyter打开。

操作步骤如下:

在GitHub上用浏览器打开该.ipynb文件;
点击代码窗口右上角的raw或者download,则代码会在新窗口中显示为json格式;
按Ctrl+S或右击将json代码保存到本地,注意将后缀改为.ipynb;
再用jupyter打开本地的ipynb文件即可;

在GitHub 上下载指定的文件夹的两种方法

一、下载所有文件
首先介绍下如果你要下载GitHub下所有的项目文件的话,可以点击其主页下的Clone or download下的Download Zip ,可以直接下载到本地电脑;或者复制其链接,如下

然后再打开Git Bash,前提是你需要电脑已经下载安装好了Git

git clone 链接地址

二、下载指定文件
你是否也经常会遇到这种情况呢?经常在Github上发现一些自己用得到的仓库,你可能会star或者folk。

但是,经常你可能会有这样的需求:我们只希望从Git仓库里取指定的文件或者文件夹出来。在SVN里面,这非常容易实现,因为SVN基于文件方式存储,而Git却是基于元数据方式分布式存储文件信息的,它会在每一次Clone的时候将所有信息都取回到本地,即相当于在你的机器上生成一个克隆版的版本库。

那么这篇博文,我想可以帮助到你

例如,在仓库:G

Overview The data has been split into two groups: training set (train.csv) test set (test.csv) The training set should be used to build your machine learning models. For the training set, we provide the outcome (also known as the “ground truth”) for each passenger. Your model will be based on “features” like passengers’ gender and class. You can also use feature engineering to create new features. The test set should be used to see how well your model performs on unseen data. For the test set, we do not provide the ground truth for each passenger. It is your job to predict these outcomes. For each passenger in the test set, use the model you trained to predict whether or not they survived the sinking of the Titanic. We also include gender_submission.csv, a set of predictions that assume all and only female passengers survive, as an example of what a submission file should look like. Data Dictionary VariableDefinitionKey survival Survival 0 = No, 1 = Yes pclass Ticket class 1 = 1st, 2 = 2nd, 3 = 3rd sex Sex Age Age in years sibsp # of siblings / spouses aboard the Titanic parch # of parents / children aboard the Titanic ticket Ticket number fare Passenger fare cabin Cabin number embarked Port of Embarkation C = Cherbourg, Q = Queenstown, S = Southampton Variable Notes pclass: A proxy for socio-economic status (SES) 1st = Upper 2nd = Middle 3rd = Lower age: Age is fractional if less than 1. If the age is estimated, is it in the form of xx.5 sibsp: The dataset defines family relations in this way... Sibling = brother, sister, stepbrother, stepsister Spouse = husband, wife (mistresses and fiancés were ignored) parch: The dataset defines family relations in this way... Parent = mother, father Child = daughter, son, stepdaughter, stepson Some children travelled only with a nanny, therefore parch=0 for them.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值