Github配置(git+vscode+python+jupyter)

①下载git
打开 git bash 工具的用户名和密码存储

$ git config --global user.name “Your Name”
$ git config --global user.email "[email protected]"
$ git config --global credential.helper store
注意:邮箱必须与 GitHub 注册邮箱一致

以后,只要第一次提交输入密码,以后就 免密码 了!

②下载vscode
配置中文(工具搜zh)

③github新建一个仓库,再下载到本地(可先cd Desktop)
如:在git上git clone https://github.com/HenryHZY/Datawhale-Python.git

④在vscode中打开这个仓库文件夹,修改、提交、同步、输账号密码

⑤在vscode拓展安装python,在文件夹工作区创建py文件,打开会自动安装python,输入代码后右键运行“在终端运行Python文件”

参考https://www.jianshu.com/p/cbf500c22154


安装jupyter
使用时命令行输入jupyter notebook,其文件后缀为ipynb

用jupyter notebook写代码,再用vscode提交即可

另外安装一些库

pip install pandas # this will include numpy lib
pip install matplotlib
pip install numpy

你可能感兴趣的:(Github配置(git+vscode+python+jupyter))