Comments (4)
aadis, the way shell integration is implemented should make it possible to integrate this mode with any text based python shell around.
An untested way to make ipython work would be something like this in your .emacs:
(setq python-shell-interpreter "ipython")
(setq python-shell-interpreter-args "")
(setq python-shell-prompt-regexp "In \\[[0-9]+\\]: ")
(setq python-shell-block-prompt-regexp "Out\\[[0-9]+\\]: ")
(setq python-shell-completion-setup-code "")
(setq python-shell-completion-strings-code "';'.join(__IP.complete('''%s'''))\n")
Probably you'll find quirks, feel free to open issues for it :)
from python.el.
aadis, I tested this and while it was working it was buggy.
Since commit aff95f77eba8801a2158b7d9f1a1f6af41d5755c you can make iPython work by adding this to your .emacs:
(setq
python-shell-interpreter "ipython"
python-shell-interpreter-args ""
python-shell-prompt-regexp "In [[0-9]+]: "
python-shell-prompt-output-regexp "Out[[0-9]+]: "
python-shell-completion-setup-code ""
python-shell-completion-string-code
"';'.join(__IP.complete('''%s'''))\n")
For me is working cool right now, give it a try and let me know.
from python.el.
Wow, fantastic. Works pretty well, all colors and what not too!
Though the tab completion in ipython is weird. It prints the name of the completion on a prompt and then prints the uncompleted text again on a new prompt.
I can provide more details if required.
But I'm pretty happy with the mode overall. Pretty clean. Thanks!
from python.el.
With the latest revision and these settings is working OK for me:
(setq
python-shell-interpreter "ipython"
python-shell-interpreter-args ""
python-shell-prompt-regexp "In [[0-9]+]: "
python-shell-prompt-output-regexp "Out[[0-9]+]: "
python-shell-completion-setup-code ""
python-shell-completion-string-code "';'.join(__IP.complete('''%s'''))\n")
If it's not for you, then you should fill a bug :)
Try running emacs like this:
emacs -Q --eval "(progn (add-to-list 'load-path "~/path/to/python-mode") (require 'python))"
That will run a clean emacs with just the changes introduced by this python-mode.
Give it a try, if you can provide some recipe to it, that would be awesome.
Thanks for your words,
Fabián.
from python.el.
Related Issues (20)
- python-shell-send-buffer fails when flask debug mode on HOT 2
- Evaluation is delayed HOT 1
- Boilerplate code for ipython setup doesn't seem to be necessary anymore HOT 2
- Turn off indent for colon except for "else" and "elif"? HOT 1
- Autocompletion does not work for magics with IPython HOT 1
- If your python.el supports open a python shell on remote host by tramp? HOT 1
- please added the latest keywords(e.g. async, await) support for python3.5+ HOT 2
- Python Shell Command Fails on Windows HOT 10
- I think it would be great if narrow-to-defun showed the function decorators too HOT 2
- IPython autocompletion stops working when assigning variable "dir"? HOT 2
- imenu does not show functions with return value annotations HOT 2
- Does not install on Emacs 24 & startup and runtime errors on Emacs 24 HOT 2
- Using tabs for indentation HOT 2
- "Dummy completion" text printed when line contains `TABs` HOT 1
- Weird error on Python script excecution HOT 2
- hangs opening a file with a long b'' line HOT 2
- ipdb track buffer error HOT 2
- Symbol’s value as variable is void: python-shell--interpreter-args HOT 2
- Closing the bug tracker
- indent-region fails to indent first level of code set by python-indent-offset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python.el.