mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Converted notebook to v3.
This commit is contained in:
parent
ed0fe8c6aa
commit
2b043c6c50
|
@ -1,11 +1,3 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:c39bbf32494020a300d424ed24cb9891d891ab8e67fe4c3162296bad4385c933"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
"worksheets": [
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
|
@ -37,8 +29,12 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# See Anaconda installed packages\n",
|
||||
"!conda list\n",
|
||||
"\n",
|
||||
|
@ -56,10 +52,7 @@
|
|||
"\n",
|
||||
"# Update a package with Anaconda\n",
|
||||
"!conda update ipython"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
@ -77,8 +70,12 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Start IPython Notebook\n",
|
||||
"ipython notebook\n",
|
||||
"\n",
|
||||
|
@ -114,10 +111,7 @@
|
|||
"\n",
|
||||
"# Run cells with python3 in a subprocess\n",
|
||||
"%%python3"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
@ -147,8 +141,12 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Configure git\n",
|
||||
"!git config --global user.name 'First Last'\n",
|
||||
"!git config --global user.email 'name@domain.com'\n",
|
||||
|
@ -170,7 +168,7 @@
|
|||
"!git rm [target]\n",
|
||||
"\n",
|
||||
"# Commit\n",
|
||||
"!git commit -m \u201cAdd commit message here\u201d\n",
|
||||
"!git commit -m “Add commit message here”\n",
|
||||
"\n",
|
||||
"# Add new origin\n",
|
||||
"!git remote add origin https://github.com/donnemartin/ipython-data-notebooks.git\n",
|
||||
|
@ -188,7 +186,7 @@
|
|||
"!git diff --cached\n",
|
||||
"\n",
|
||||
"# Undo a file that has not been added\n",
|
||||
"!git checkout \u2014 [target]\n",
|
||||
"!git checkout — [target]\n",
|
||||
"\n",
|
||||
"# Create a branch\n",
|
||||
"!git branch [branch]\n",
|
||||
|
@ -241,10 +239,7 @@
|
|||
"\n",
|
||||
"# Open Hatch missions\n",
|
||||
"!git clone https://openhatch.org/git-mission-data/git/dmartin git_missions"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
@ -262,8 +257,12 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Update Ruby\n",
|
||||
"!rvm get stable\n",
|
||||
"\n",
|
||||
|
@ -284,10 +283,7 @@
|
|||
"\n",
|
||||
"# Check Ruby version\n",
|
||||
"!ruby -v"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
@ -302,7 +298,7 @@
|
|||
"source": [
|
||||
"[Jekyll](http://jekyllrb.com/) is a blog framework that can be hosted on GitHub Pages.\n",
|
||||
"\n",
|
||||
"In addition to donnemartin.com, I\u2019ve started to build up its mirror site donnemartin.github.io to try out Jekyll. So far I love that I can use my existing developer tools to generate content (SublimeText, Terminal, and GitHub).\n",
|
||||
"In addition to donnemartin.com, I’ve started to build up its mirror site donnemartin.github.io to try out Jekyll. So far I love that I can use my existing developer tools to generate content (SublimeText, Terminal, and GitHub).\n",
|
||||
"\n",
|
||||
"Here are other features I like about Jekyll:\n",
|
||||
"\n",
|
||||
|
@ -321,13 +317,14 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"!rvm --default ruby-2.1.5"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
@ -338,21 +335,40 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": false
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# => The current folder will be generated into ./_site\n",
|
||||
"!bundle exec jekyll build\n",
|
||||
"\n",
|
||||
"# => A development server will run at http://localhost:4000/\n",
|
||||
"# Auto-regeneration: enabled. Use `--no-watch` to disable.\n",
|
||||
"!bundle exec jekyll serve"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
}
|
||||
],
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 2",
|
||||
"language": "python",
|
||||
"name": "python2"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 2
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython2",
|
||||
"version": "2.7.9"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user