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,12 +1,4 @@
|
||||||
{
|
{
|
||||||
"metadata": {
|
|
||||||
"name": "",
|
|
||||||
"signature": "sha256:c39bbf32494020a300d424ed24cb9891d891ab8e67fe4c3162296bad4385c933"
|
|
||||||
},
|
|
||||||
"nbformat": 3,
|
|
||||||
"nbformat_minor": 0,
|
|
||||||
"worksheets": [
|
|
||||||
{
|
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -37,8 +29,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"collapsed": false,
|
"execution_count": null,
|
||||||
"input": [
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
"# See Anaconda installed packages\n",
|
"# See Anaconda installed packages\n",
|
||||||
"!conda list\n",
|
"!conda list\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -56,10 +52,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
"# Update a package with Anaconda\n",
|
"# Update a package with Anaconda\n",
|
||||||
"!conda update ipython"
|
"!conda update ipython"
|
||||||
],
|
]
|
||||||
"language": "python",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -77,8 +70,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"collapsed": false,
|
"execution_count": null,
|
||||||
"input": [
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
"# Start IPython Notebook\n",
|
"# Start IPython Notebook\n",
|
||||||
"ipython notebook\n",
|
"ipython notebook\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -114,10 +111,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
"# Run cells with python3 in a subprocess\n",
|
"# Run cells with python3 in a subprocess\n",
|
||||||
"%%python3"
|
"%%python3"
|
||||||
],
|
]
|
||||||
"language": "python",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -147,8 +141,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"collapsed": false,
|
"execution_count": null,
|
||||||
"input": [
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
"# Configure git\n",
|
"# Configure git\n",
|
||||||
"!git config --global user.name 'First Last'\n",
|
"!git config --global user.name 'First Last'\n",
|
||||||
"!git config --global user.email 'name@domain.com'\n",
|
"!git config --global user.email 'name@domain.com'\n",
|
||||||
|
@ -170,7 +168,7 @@
|
||||||
"!git rm [target]\n",
|
"!git rm [target]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Commit\n",
|
"# Commit\n",
|
||||||
"!git commit -m \u201cAdd commit message here\u201d\n",
|
"!git commit -m “Add commit message here”\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Add new origin\n",
|
"# Add new origin\n",
|
||||||
"!git remote add origin https://github.com/donnemartin/ipython-data-notebooks.git\n",
|
"!git remote add origin https://github.com/donnemartin/ipython-data-notebooks.git\n",
|
||||||
|
@ -188,7 +186,7 @@
|
||||||
"!git diff --cached\n",
|
"!git diff --cached\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Undo a file that has not been added\n",
|
"# Undo a file that has not been added\n",
|
||||||
"!git checkout \u2014 [target]\n",
|
"!git checkout — [target]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Create a branch\n",
|
"# Create a branch\n",
|
||||||
"!git branch [branch]\n",
|
"!git branch [branch]\n",
|
||||||
|
@ -241,10 +239,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
"# Open Hatch missions\n",
|
"# Open Hatch missions\n",
|
||||||
"!git clone https://openhatch.org/git-mission-data/git/dmartin git_missions"
|
"!git clone https://openhatch.org/git-mission-data/git/dmartin git_missions"
|
||||||
],
|
]
|
||||||
"language": "python",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -262,8 +257,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"collapsed": false,
|
"execution_count": null,
|
||||||
"input": [
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
"# Update Ruby\n",
|
"# Update Ruby\n",
|
||||||
"!rvm get stable\n",
|
"!rvm get stable\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -284,10 +283,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
"# Check Ruby version\n",
|
"# Check Ruby version\n",
|
||||||
"!ruby -v"
|
"!ruby -v"
|
||||||
],
|
]
|
||||||
"language": "python",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -302,7 +298,7 @@
|
||||||
"source": [
|
"source": [
|
||||||
"[Jekyll](http://jekyllrb.com/) is a blog framework that can be hosted on GitHub Pages.\n",
|
"[Jekyll](http://jekyllrb.com/) is a blog framework that can be hosted on GitHub Pages.\n",
|
||||||
"\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",
|
"\n",
|
||||||
"Here are other features I like about Jekyll:\n",
|
"Here are other features I like about Jekyll:\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -321,13 +317,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"collapsed": false,
|
"execution_count": null,
|
||||||
"input": [
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
"!rvm --default ruby-2.1.5"
|
"!rvm --default ruby-2.1.5"
|
||||||
],
|
]
|
||||||
"language": "python",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
@ -338,21 +335,40 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"collapsed": false,
|
"execution_count": null,
|
||||||
"input": [
|
"metadata": {
|
||||||
|
"collapsed": false
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
"# => The current folder will be generated into ./_site\n",
|
"# => The current folder will be generated into ./_site\n",
|
||||||
"!bundle exec jekyll build\n",
|
"!bundle exec jekyll build\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# => A development server will run at http://localhost:4000/\n",
|
"# => A development server will run at http://localhost:4000/\n",
|
||||||
"# Auto-regeneration: enabled. Use `--no-watch` to disable.\n",
|
"# Auto-regeneration: enabled. Use `--no-watch` to disable.\n",
|
||||||
"!bundle exec jekyll serve"
|
"!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