Questions tagged [ipython]

IPython is an interactive shell for Python.

Filter by
Sorted by
Tagged with
2
votes
1answer
315 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 ...
0
votes
2answers
982 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 ...
1
vote
1answer
342 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
1answer
496 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
1answer
408 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 ...
1
vote
0answers
467 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 ...
3
votes
0answers
142 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. ...
0
votes
1answer
142 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
0answers
719 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 ...
19
votes
2answers
15k 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 ...
3
votes
1answer
282 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?
5
votes
2answers
3k 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 ...
4
votes
1answer
485 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 ...
2
votes
1answer
342 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
1answer
235 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 ...
1
vote
1answer
358 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") (...
5
votes
2answers
820 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, ...
1
vote
0answers
232 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
1answer
3k 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 ...
1
vote
1answer
873 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/...
2
votes
2answers
439 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
1answer
762 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
1answer
1k 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
1answer
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
1answer
720 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 ...
10
votes
3answers
2k 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) ...