Scrollable RISE
RISE 是一套結合jupyter-notebook 和reveal.js 的專案
讓我們能在 jupyter notebook 直接開啟如同 reveal.js 的 slide
解決更新 gcc 找不到 libgfortran.3.dylib (Octave,R)
最近在 mac 上更新了 gcc 6 後,不管是開 Octave 還是 R
都會出現以下的錯誤訊息
dyld: Library not loaded: /usr/local/lib/gcc/5/libgfortran.3.dylib
Referenced from: /usr/local/Cellar/r/3.3.0/R.framework/Versions/3.2/Resources/lib/libR.dylib
Reason: image not found
Trace/BPT trap: 5
External.js - Load HTML in Reveal.js
reavel.js 提供了 data-markdown="example.md"
這個 tag 可以載入外部的 markdown
卻沒提供可以載入 html 的 tag
於是就有人寫了這個External.js
解決安裝 IRKernel 缺少 zmq.h
安裝 IRKernel
進入 R 的命令列,輸入下面的指令
就能安裝 IRKernel,以後就能在 jupyter 中使用 R
install.packages(c('rzmq','repr','IRkernel','IRdisplay'),
repos = c('http://irkernel.github.io/', getOption('repos')))
IRkernel::installspec()
錯 …
在 jupyter 中同時使用 Python2 Python3
先安裝 Python2 和 Python3 的 ipython notebook
pip2 install ipython notebook
pip3 install ipython notebook
分別用各自的 ipython 執行下面的指令
ipython2 kernelspec install-self
ipython3 kernelspec install-self