ob-ipython introduce ob-ipython repo
ob-ipython是基于org-babel,提供了一个在org-mode下做类似jupyter-notebook体验的开发模式. 用来快速做代码尝试或一个pandas数据分析很长合适.
为什么不使用原声的jupyter呢?
基于browser的jupyter使用体验并不好. 按键配置和补全,snippets等等都是致命伤,这让jupyter notebook用起来更像个toy-project.
org-mode天生强大的功能配合ob-babel, ob-ipython. org-mode强大的文件编辑功能自不必说, 这种方式也比原生的代码里套markdown的方式更舒服. 配合上可以使用emacs所有的增强功能.
literal-programming的正确使用方式.
支持的特性 内嵌pandas, matplotlib图片和表格数据 org-mode variable 导出功能export multi-language?? jupyter-kernel support?? working with a remote session?? 在代码中打开REPL to play with. org literal-programming with :tang supported. install in spacemacs first add ob-ipython to spacemacs dotspacemacs-additional-packages install jupyter pip install jupyter config ob-ipython in spacemacs `user-config` (with-eval-after-load 'org (add-to-list 'org-babel-load-languages '(ipython . t)) (add-to-list 'org-babel-load-languages '(rust .
包括的内容:
字面量 literal 解构数组,枚举,结构提,元组等 变量 通配符 占位符 rust match rust match is exhaustive, all situation must be consided
_ match all, and not bind to variable, use to ignore
if let use can only care abouot one situation
fn main() { let favorite_color: Option<&str> = None; let is_tuesday = false; let age: Result<u8, _> = "34".parse(); if let Some(color) = favorite_color { println!("Using your favorite color, {}, as the backgourd", favorite_color); }else if is_tuesday { println!
concept main aixs vs across aixs one-dimension write-flow unknown property