Questions tagged [ipython]

IPython is an interactive shell for Python.

Filter by
Sorted by
Tagged with
2 votes
0 answers
682 views

Is it possible to have IPython qtconsole open as the default python console in Spacemacs?

Whenever I open a Python script in Spacemacs, I do C-c C-p to launch a console embedded - a console that is, by default, actually an iPython console. Here is what I would love to be able to ...
1 vote
1 answer
2k views

Error when opening IPython notebook list using EIN

I am not entirely sure where to post this question (here, stackoverflow....), but I am sure some emacs experts will be able to help me here. This question is also posted here https://github.com/tkf/...
0 votes
2 answers
1k views

Can't use Emacs IPython Notebook? [duplicate]

I've never tried IPython Notebook so I thought I would try EIN. I installed ipython via dnf on Fedora 23 with all of the dependencies. Then I installed ein via M-x list-packages through elpa. But ...
11 votes
3 answers
3k views

Emacs EIN vs IPython shell

I'm trying to make EIN work within Emacs, but right now (with IPython 2) it seems that it's not possible. This errors arise: REQUEST [error] Error from parser ein:json-read: (json-readtable-error) ...
1 vote
0 answers
2k views

Python inline plotting

I'd like to start using Emacs (Spacemacs) for my python work, however, a lot of what I do requires me to interact with the data in the IPython REPL, plot inline graphs, etc. For example, I might have ...
6 votes
1 answer
1k views

Ipython completion in elpy

My elpy uses ipython as the interactive interpreter. It does not, however, emulate ipython's history-informed autocomplete feature (for lack of a better term). That is: within an ipython session ...
1 vote
1 answer
387 views

Spacemacs Python Layer Invalid version syntax: '[?1034h4.0.0'

When I attempt to start Spacemacs with the Python layer enabled, I see a warning: Error (use-package): python :init: Invalid version syntax: '[?1034h4.0.0' Restarting emacs using --debug-init shows: ...
0 votes
1 answer
330 views

Emacs python can not update imported files?

I am using spacemacs, anaconda-mode. In file main.py, I imported a class from file a.py. Then I pressed C-c C-p to launch an ipython shell, and run main.py, everything is OK. But then I modified the ...
2 votes
0 answers
203 views

Output of ipython shell much slower than python shell

Even turning off font-lock-mode and set (setq python-shell-font-lock-enable nil), the output of an ipython shell (setq python-shell-interpreter "ipython") seems much slow than the python shell (...
3 votes
1 answer
1k views

Input and Output does not show up in python mode

I am using the Python mode with Emacs 25.1.1 to send parts of my python scripts to an ipython console. I have the problem that both the input and the output is not shown in the python window. Whenever ...
0 votes
2 answers
527 views

python emacs interpreter doesn't pause for input in loops

This looks like Weird shell output when using IPython 5, but it actually is not. I did set (setq python-shell-interpreter-args "--simple-prompt -i --pylab") in .emacs, but I get the following error:...
2 votes
0 answers
137 views

Lisp error with elpy under Python 3

I've had my emacs (v. 25.1.1) working with elpy (1.13) under Python 2.7 for a while. I decided to switch to Python 3 recently, and cannot get it to interact with emacs properly. Normally, when I ...
3 votes
2 answers
888 views

Emacs freezes with ipython 5.0.0

My problem is Emacs with elpy, specifically with (elpy-use-ipython) in my init file. When I try to open a python file, emacs freezes. I desactivate ipython and emacs runs well. But I wanna use ...
2 votes
1 answer
948 views

Setting `python-shell-interpreter-args` causes slow python mode enabling

I have a ipython config which imports lots of packages. I also have some configs in my python setup like (setq python-shell-interpreter "ipython3" python-shell-interpreter-args "-i --...
2 votes
1 answer
210 views

How do I filter for IPython prompt characters on Mac OS? [duplicate]

I've debugged to this point: OS X El Capitan (10.11.5) Emacs 24.5.1 with Cocoa (installed from homebrew) python.el 0.24.5 Python 3.5.1 IPython 5.0.0 I've configured IPython to use NoColor mode in ...
3 votes
0 answers
161 views

Remove extra prompts in inferior-python-mode with ipython

emacs24.5 -Q M-: (setq python-shell-interpreter "ipython") RET M-x run-python RET Python 3.5.1 (default, Dec 7 2015, 12:58:09) Type "copyright", "credits" or "license" for more information. ...
2 votes
1 answer
364 views

Process Python not running on ob-ipython

I think I must be missing something silly. I am trying to use ob-ipython in my org-mode files. When I press C-c C-c I get Process Python not running. Do I need to startup some process or something ...
3 votes
1 answer
2k views

elpy with ipython as rpc -- how to get good autocompletion

I'm using elpy with emacs and python3. Here's the relevant part of my .emacs: ;; PYTHON (elpy-enable) (setq elpy-rpc-python-command "python3") (elpy-use-ipython "ipython3") (autoload 'jedi:setup "...
2 votes
1 answer
947 views

ipython not working in org mode

I've followed everything here in order to set up ipython in org mode. But I keep getting the error: ...executing Ipython code block... apply: Searching for program: no such file or directory, ipython ...
1 vote
1 answer
349 views

Indentaion in inferior-python-mode

In Python mode (python.el), I am in the habit of hitting C-j to return and indent properly. However, when I am in an inferior python buffer, this command only inserts a newline and does not indent. Is ...
0 votes
1 answer
386 views

Problem working with python/pygame

I encounter this problem almost always when i am working on a python-pygame project. Every second time when i evaluate the whole buffer with C-c C-c or with C-c C-l the pygame window open for a very ...
1 vote
1 answer
561 views

Ipython hangup while running code

When I run code from a buffer in python-mode for it to evaluate in a dedicated inferior ipython process emacs freezes. It freezes if, while the code is evaluating, I try to edit the buffer from which ...
3 votes
2 answers
1k views

ob-ipython error

I have Installed from Melpa ob-ipython on Ubuntu Xenial with Emacs 24. If I try to evaluate a source code like: #+BEGIN_SRC ipython :session %matplotlib inline importmatplotlib.pyplot as plt inport ...
2 votes
1 answer
72 views

Force append to buffer instead of at point

Is it possible to force an Emacs buffer to place any new text it receives at the end of the buffer, instead of at the mouse point? I mean all of: keystrokes, yanks, mouse paste. I'm thinking in ...
1 vote
1 answer
487 views

run-python does not work if added to python-mode-hook

I would like the Python inferior process to start (if it is not already running) whenever I create a python-mode buffer (for example, by visiting a .py file). Some functions in anaconda-mode etc. ...
0 votes
1 answer
594 views

Spacemacs with iPython remotely

I am trying to run my python script with spacemacs + ipython on my remote machine. I found this and works: Running ipython remotely But with this approach, everytimes when I lose connection with ...
1 vote
0 answers
671 views

How can I get completion and tooltips based on company mode in Emacs Ipython Notebook?

I am using Emacs 24.5.1 and John Miller's fork of the Emacs IPython Notebook (EIN) client. The documentation indicates support for auto-completion based on auto-complete mode. As I am a company-mode ...
0 votes
1 answer
192 views

Select the python version in a terminal

I want to open a python interpreter in a buffer with ipython. So I use that, from the term-mode : (make-term "ipython" "/usr/bin/env" nil "ipython" (or filename "") "--TerminalIPythonApp....
0 votes
0 answers
1k views

Auto complete with tab not working in IPython

I installed Emacs for Python (from this github repo) on my Emacs 24.5.1. When I start an IPython shell, auto-complete with tab doesn't work. Instead, the tab key just insert four spaces. But if I ...
4 votes
1 answer
627 views

Replicate ipython history behaviour in Emacs

Say, we've entered the following in the normal ipython shell. In [1]: 1+1 Out[1]: 2 In [2]: 1+2 Out[2]: 3 In [3]: 2+4 Out[3]: 6 If I now enter: In [4]: 1+ and press the up arrow key, ipython ...
3 votes
1 answer
558 views

How do I automatically truncate a growing buffer?

I want to run IPython in emacs for all the emacsy goodness I get, but I'm having a problem getting the buffer to automatically truncate (it gets slow quickly printing large dataframes and such). It ...
1 vote
1 answer
440 views

emacs always calls ipython with matplotlib

I'm trying using ipython in emacs. I installed python-mode and config ipython: (require 'python-mode) ; use IPython (setq-default py-shell-name "ipython") (setq-default py-which-bufname "IPython") (...
3 votes
2 answers
563 views

Wrapping Python code with %cpaste and -- to send to iPython in elpy

I am loving my elpy setup in emacs, but I have one question. When I put in a ipdb.set_trace() for the ipython shell I want to send code snippets to the iPython shell. Right now my workaround is ...
1 vote
0 answers
305 views

Emacs and IPython integration: multiple lines sent

I am using emacs with Anaconda's IPython console: (setq python-shell-interpreter (substitute-in-file-name "$HOME/anaconda3/bin/ipython")) IPython opens after C-c C-p, but always with four empty ...
6 votes
1 answer
4k views

Running two IPython instances at the same time

I'd like to run two instances of IPython in Emacs at the same time, one with Python 2, and the other Python 3: is it something doable or there's something in the way python.el is designed that would ...
2 votes
1 answer
1k views

IPython shell theme

I'm using solarized theme in emacs-24.3. While I'm quite happy with it generally, the IPython shell is blindingly ugly. It is quite clear that the font colors within it are not using solarized values. ...
5 votes
1 answer
2k views

Where is the python.el documentation?

I am using emacs-24.3, which comes with python.el and IPython support out of the box (or so they say). Is there documentation for this mode? Where can I find it?
6 votes
1 answer
1k views

Emacs 24's python.el + ipython cannot complete module names

I'm using Emacs 24.4.1 on OSX (installed with Homebrew), with the built in python.el, and Python 3 (also installed with Homebrew), along with IPython 2.3.0. I have this in my .emacs: (setq python-...
7 votes
1 answer
967 views

working setup for ipython in babel

Can someone point me to a working setup for using babel with IPython? I'm witnessing strange indentation behavior when I try to define functions. This happens whether or not I specify the --classic ...

1
2