Last active
January 3, 2018 14:15
-
-
Save akimach/f658893a32e527301c20a6c160a9c9ba to your computer and use it in GitHub Desktop.
Pelican と Github PagesでJupyter Notebooksを公開する ref: https://qiita.com/akimach/items/11728ba1c9bb3d1f176b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone [email protected]:akimach/note.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install pelican Markdown pytz ghp-import |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ R | |
> devtools::install_github('IRkernel/IRkernel') | |
> IRkernel::installspec(name = 'ir33', displayname = 'R 3.3') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd note | |
$ pelican-quickstart | |
Welcome to pelican-quickstart v3.7.1. | |
This script will help you create a new Pelican-based website. | |
Please answer the following questions so this script can generate the files | |
needed by Pelican. | |
> Where do you want to create your new web site? [.] . | |
> What will be the title of this web site? akimach.note | |
> Who will be the author of this web site? akimach | |
> What will be the default language of this web site? [en] ja | |
> Do you want to specify a URL prefix? e.g., http://example.com (Y/n) n | |
> Do you want to enable article pagination? (Y/n) Y | |
> How many articles per page do you want? [10] 5 | |
> What is your time zone? [Europe/Paris] Asia/Tokyo | |
> Do you want to generate a Fabfile/Makefile to automate generation and publishing? (Y/n) Y | |
> Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) n | |
> Do you want to upload your website using FTP? (y/N) N | |
> Do you want to upload your website using SSH? (y/N) N | |
> Do you want to upload your website using Dropbox? (y/N) N | |
> Do you want to upload your website using S3? (y/N) N | |
> Do you want to upload your website using Rackspace Cloud Files? (y/N) N | |
> Do you want to upload your website using GitHub Pages? (y/N) y | |
> Is this your personal page (username.github.io)? (y/N) N | |
Done. Your new project is available at /Users/akimach/note |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install ipython jupyter numpy matplotlib scipy pandas scikit-learn seaborn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/danielfrg/pelican-ipynb.git plugins/ipynb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── Makefile | |
├── README.md | |
├── content | |
│ ├── linear-regression-with-python.ipynb | |
│ └── linear-regression-with-python.ipynb-meta | |
├── fabfile.py | |
├── output | |
│ ├── archives.html | |
│ ├── authors.html | |
│ ├── categories.html | |
│ ├── feeds | |
│ │ └── all.atom.xml | |
│ ├── index.html | |
│ ├── tags.html | |
(略) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Title: Linear regression of Boston Housing Dataset using PyData | |
Slug: linear-regression-with-python | |
Date: 2017-11-06 0:00 | |
Category: Notebook | |
Tags: Python, PyData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
THEME = '/Users/akimach/pelican-themes/blueidea' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- RELATIVE_URLS = False | |
+ RELATIVE_URLS = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment