You may also be interested in bpython-curtsies along with the new "send session to editor" functionality (triggered by F7) which throws your entire session in emacs for modification, then re-executes it when you close the file. I like this workflow for combining the power of a text editor with the interactive features of bpython. You might also like "reimport," (F6) which reruns the entire bpython session including reimporting imported modules - another way to combine text editor and the REPL.
bpython seems not to run from inside Emacs at all - changing this seems out of scope.
Citing a workaround from here:
http:// emacs.stackexch ange.com/ questions/ 6012/is- it-possible- to-transform- emacs-to- something- like-bpython
You may also be interested in bpython-curtsies along with the new "send session to editor" functionality (triggered by F7) which throws your entire session in emacs for modification, then re-executes it when you close the file. I like this workflow for combining the power of a text editor with the interactive features of bpython. You might also like "reimport," (F6) which reruns the entire bpython session including reimporting imported modules - another way to combine text editor and the REPL.