版本:0.0.1
作者:詹子知
邮件:[email protected]
Github 加载 .ipynb 的速度较慢,建议在 Nbviewer 中查看该项目。
部分内容来自网络。
默认安装了 Ruby 2.4.1,以及相关的第三方包 bundler, iruby。
为了更好地使用 Jupyter NoteBook,推荐安装 jupyter, 推荐使用 Anaconda。
安装好 Ruby 和相应的包之后,可以在命令行下输入:
git clone https://github.com/jameszhan/notes-ruby.git
cd notes-ruby
bundle update启动笔记本
iruby notebook .或者
jupyter notebook .可以在 Notebook 中打开 generate-static-files.ipynb 来生成静态的 HTML 文件。
使用命令行工具生成。
gem install thor
chmod +x generate
# 默认生成 markdown 文件到 static-files 目录
./generate static
# 生成 pdf 文件到 static-files 目录
./generate static --to pdf
# 生成 html 文件到 generated 目录
./generate static --to html --output=generated