我尝试在org模式下使用ob-ipython。
添加以下配置以启用ob-ipython。
(org-babel-do-load-languages'org-babel-load-languages “( (ipython.t) ))
在组织文件中编写示例代码块。
#+BEGIN_SRC ipython :session :results output drawer
print "hello"
#+END_SRC
Warning (python): Python shell prompts cannot be detected.
If your emacs session hangs when starting python shells
recover with ‘keyboard-quit’ and then try fixing the
interactive flag for your interpreter by adjusting the
‘python-shell-interpreter-interactive-arg’ or add regexps
matching shell prompts in the directory-local friendly vars:
+ ‘python-shell-prompt-regexp’
+ ‘python-shell-prompt-block-regexp’
+ ‘python-shell-prompt-output-regexp’
Or alternatively in:
+ ‘python-shell-prompt-input-regexps’
+ ‘python-shell-prompt-output-regexps’
我的步骤有什么问题?