Skip to content

Instantly share code, notes, and snippets.

@akimach
Last active January 3, 2018 14:15
Show Gist options
  • Save akimach/f658893a32e527301c20a6c160a9c9ba to your computer and use it in GitHub Desktop.
Save akimach/f658893a32e527301c20a6c160a9c9ba to your computer and use it in GitHub Desktop.
Pelican と Github PagesでJupyter Notebooksを公開する ref: https://qiita.com/akimach/items/11728ba1c9bb3d1f176b
$ git clone [email protected]:akimach/note.git
$ pip install pelican Markdown pytz ghp-import
$ make github
$ git clone --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes
$ make github
$ R
> devtools::install_github('IRkernel/IRkernel')
> IRkernel::installspec(name = 'ir33', displayname = 'R 3.3')
$ make github
$ 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
$ make github
$ pip install ipython jupyter numpy matplotlib scipy pandas scikit-learn seaborn
$ git clone https://github.com/danielfrg/pelican-ipynb.git plugins/ipynb
$ 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
(略)
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
THEME = '/Users/akimach/pelican-themes/blueidea'
- RELATIVE_URLS = False
+ RELATIVE_URLS = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment