I try to use ob-ipython in org mode.
- Install ob-ipython module.
Add below configuration to enable ob-ipython.
(org-babel-do-load-languages 'org-babel-load-languages '( (ipython . t) ))
Write sample code block in org file.
#+BEGIN_SRC ipython :session :results output drawer
print "hello"
#+END_SRC
- Press C-c C-c to run this code block,but got a warning as below:
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’
What's wrong with my steps?