Questions tagged [ipython]

IPython is an interactive shell for Python.

Filter by
Sorted by
Tagged with
3 votes
1 answer
174 views

ein + ipython non-responsive with python 'raw_input'

I am using Emacs with the ein package to edit ipython files. Everything works fine except when I have a line like: fhandle = raw_input('enter your file name: ') to prompt for a file name. The ...
Cousin Dupree's user avatar
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 --...
Saddle Point's user avatar
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 ...
Christian's user avatar
  • 379
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 ...
purple_arrows's user avatar
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 ...
cactus's user avatar
  • 55
6 votes
1 answer
2k views

Emacs IPython prompt symbol is garbled

I just installed Fedora 24 with Emacs and IPython. When I launched the IPython shell in Emacs, the prompt symbol, which should be "In [1]", is displayed as "^[[?12l^[[?25h". Is there a way to solve ...
htcai's user avatar
  • 61
41 votes
4 answers
8k views

Weird shell output when using IPython 5

I just upgraded to the latest version of IPython and now something is wrong when using it in emacs. When using it in a regular terminal it works fine (colors, tab-completion, etc.), however either ...
Literal's user avatar
  • 675
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 "...
Spacemoose's user avatar
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 ...
147pm's user avatar
  • 2,969
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 ...
user avatar
0 votes
1 answer
489 views

Inferior Python Shell - Windows - not printing results

I'm trying to use inferior python shell to run ipython commands interactively. I am able to connect but it doesn't print the results of my statements except when I use print statements In [1]: a = 10 ...
user12231's user avatar
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 ...
falematte's user avatar
  • 423
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 ...
Matei David's user avatar
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 ...
Adam Thompson's user avatar
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 ...
Adam Thompson's user avatar
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. ...
blokeley's user avatar
  • 111
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 ...
boboray's user avatar
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 ...
Jules's user avatar
  • 1,225
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 ...
Michael's user avatar
  • 111
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. ...
PythonNut's user avatar
  • 10.4k
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....
P.-A.'s user avatar
  • 115
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 ...
erickrf's user avatar
  • 135
40 votes
3 answers
27k views

How to set up elpy to use python3?

When setting up my emacs for a new work environment, I am unable to get the elpy configuration to correctly use python 3. I have installed all of the required packages in /usr/local/bin and have ...
adam's user avatar
  • 501
5 votes
1 answer
518 views

Initialize ipython notebook server from .ipynb file

Is it possible to open EIN notebook as file, so it automatically takes care of starting ipython notebook server?
Jānis Erdmanis's user avatar
5 votes
2 answers
5k views

multi line inputs in ipython

Say, I typed In [1]: def foo(a, b): ...: return a+b ...: in the normal, non-emacs ipython shell. Pressing the up arrow key afterwards, allows me to get the complete multi-line input back which ...
Martin R. Albrecht's user avatar
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 ...
Martin R. Albrecht's user avatar
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 ...
The Unfun Cat's user avatar
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 ...
elethan's user avatar
  • 4,825
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") (...
cuonglm's user avatar
  • 187
6 votes
2 answers
1k views

Emacs Ipython Notebook - What is determining inline plot background?

I have been trying to figure out what attribute is setting the background for inline plots in EIN. The background for the plot seems to always take the default background color for my color theme, ...
user3014097's user avatar
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 ...
alkamid's user avatar
  • 111
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 ...
cjauvin's user avatar
  • 594
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/...
Javier's user avatar
  • 197
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 ...
statmobile's user avatar
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. ...
dmvianna's user avatar
  • 392
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?
dmvianna's user avatar
  • 392
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-...
cjauvin's user avatar
  • 594
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 ...
wdkrnls's user avatar
  • 3,707
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) ...
El Diego Efe's user avatar
  • 1,621

1
2