有没有人在 Emacs 里面用 jupyter 的?

想知道这方面的体验怎么样,试了下 ein 感觉不是很舒服,也许是需要比较多的配置?

有没有 Emacser 目前在用,可以分享下配置呢?

Ein体验就是不太好。试试eaf。

EAF支持jupyter

jupyter 这个包比ein要更好些,集成到其他地方也很方便。扩展性相对更好。

notebook 的话应该只有 ein,不用 notebook 可以选择 emacs-jupyter,里面提供了 repl,org-babel

eaf 的 jupyter 我之前试用过,感觉功能被 emacs-jupyter 覆盖了,而且 kernel 切换不是很方便 ,需要一些trick

如果不强制 notebook 的话,emacs-jupyter 是比较好的选择

reddit 上有人介绍过工作流,org jupyter + exporter 导入导出别人的 notebook…

1 个赞

试了一下 eaf 里面的 jupyter,更像是一个 ipython 的样子,还是说我没有搞明白?

楼上的几个都试过,感觉目前没有一个好用的。我也搜索过很久,似乎emacs目前就是没有比较好的jupyter环境。这点和vscode比不了。要我说,建议jupyter不在emacs里用。

现在jupyter是我唯一打开vscode的原因,org-mode是我唯一坚持emacs的原因。其余的东西vscode和emacs不相上下。

当然现在还有一个解是把Jupyterlab直接做成desktop。https://gist.github.com/xiaolai/697ec3ea1607994440abf574c0f017e5

这个问题原先emacs-ng有人提出来过,Interactive computational notebooks via emacs-jupyter · Issue #209 · emacs-ng/emacs-ng · GitHub 由于原生的emacs的底层问题,jupyter ein最最好的体验就是是重写async http 与deno webview js(emacs-ng特性)通信就好了。

看eaf的github里的截图好像就是ipython,不是一个notebook。

如果不用到远程功能,个人觉得emacs-jupyter比jupyter notebook可能更好用,尤其是当notebook变得特别大的时候,或者文档结构和内容变得很复杂的时候。