Questions tagged [ipython]

IPython is an interactive shell for Python and other programming languages. Questions about programming using IPython are off-topic here.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

python pyfiglet not installing due to NO SUCH FILE OR DIRECTORY

I tried to install "python install the pyfiglet" in cmd with the same directory as the program file with, but it says CAN'T OPEN FILE AND NO SUCH FILE DIRECTORY C:\Users\huawei\AppData\...
0 votes
0 answers
31 views

How do I run Python program from IPython Console to show the plots?

I want to run my Python code from IPython Console (instead of doing it by pressing the 'Run file' button in Spyder or F5 key). In particular, given that my Python program is called plot.py, I run it ...
0 votes
1 answer
195 views

Jupyter does not work without kernel restart after exception

I need to kill and restart the kernel of Jupyter upon encountering an exception in the code. Otherwise, none of the cells will execute. This happens with any script, i.e. it can be something as simple ...
1 vote
0 answers
30 views

Is there such a thing as Jupyter Notebooks just for markdown? [closed]

I started making notes on a software process using the code and markdown cells in a jupyter notebook and realised that while I didn't actually use the code cells and was just using it as a notebook, ...
0 votes
2 answers
4k views

Installed Jupyter Notebook for Python 3.6.8 stuck at "Kernel Starting, please wait..."

I installed jupyter notebook on my computer for a RHEL system, I installed it using the command pip3 install --user jupyter and then later due to it not working pip3 install --force-reinstall --user ...
  • 123
1 vote
1 answer
2k views

Run Anaconda's ipython on Windows 10's Terminal in one go

As the title suggests, I would like to run Anaconda's ipython on Windows 10's Windows Terminal (Preview) (preferrably in the cmd.exe tab) in one go. By in one go I mean, with a single shortcut or ...
  • 133
1 vote
0 answers
145 views

Copy clipboard from Notepad++ to PuTTY issue

I have code written in Notepad++ and PuTTY into a linux server. When copying multiple lines to ipython on the linux server, it only reads and executes one line and forgets the rest of the lines I ...
  • 11
0 votes
1 answer
383 views

Error loading Jupyter notebook

I have been working on one project on my jupyter notebook for days but python stopped working for some reason. I continued working on file as I was editing some markdown cells. After reopening ...
  • 101
1 vote
1 answer
538 views

Ipython kernel keeps crashing when running UMAP

I am trying to run some dimensionality reduction using UMAP. However, python keeps crashing. My hunch is that it has something to do with c compiler/cython, but I didn't succeed to re-install/fix this....
4 votes
0 answers
204 views

IPython has lag on ConEmu, and only on ConEmu

I'm running Python 3.7.3 through IPython 7.5.0 on ConEmu 19.6.23.0, using Windows 10 Pro. Whenever I run IPython on ConEmu, I experience lag. For example, on IPython's interpreter I input 1+1 and hit ...
  • 155
2 votes
2 answers
2k views

Error while starting Jupyter notebook from terminal on Mac OS

I've been fiddling with my anaconda, jupyter, IPython installations, and I honestly don't know how I ended up with this error. Can anyone help me resolve this so I can get back to running jupyter ...
1 vote
0 answers
27 views

Simplest way to create in-browser python repl?

I want to create a very minimal version of something like Jupyter Notebook where I can type python code into a browser window, run the code on the server, and print the result to the browser. (Don't ...
  • 634
2 votes
0 answers
895 views

Unable to load Google Colaboratory

I went to Colaboratory! and signed in using my gmail address. I'm using Chrome. I disabled the ad blocker for Colab. When I attempt to create a new notebook I get the following error: Error Unable to ...
1 vote
2 answers
1k views

Clear multi-line input in IPython

The current line on the IPython prompt can be cleared with the keyboard shortcut Ctrl-U. Is there any shortcut that clears all lines on the IPython prompt in one go?
  • 11
1 vote
1 answer
234 views

Emacs + ipython tab completion not working ("no match")

I am using emacs with elpy, and ipython as interpreter. After a general upgrade of the python packages today, tab completion stopped working in ipython, always gives "no match" message. Does anybody ...
  • 113
0 votes
1 answer
3k views

Issue with importing keras in Jupyter Notebook

I have an issue while importing keras after installing Tensorflow and Keras using Anaconda Prompt. The error says 'No module named keras'. I'm using Python 3.67.
  • 1
2 votes
1 answer
35 views

Install IPython on stand-alone windows machine

How can I install IPython on a Windows machine not connected to Internet. I only need the shell without the notebooks. I couldn't find dependency list - all installation instructions use pip and ...
  • 2,668
4 votes
1 answer
1k views

"ssh -X" doesn't open matplotlib figures

Often times, I ssh into another computer to do python work. While I'm coding, I like to have an ipython shell open for quick testing. For some reason, I cannot get matplotlib to open figures. Here is ...
  • 41
1 vote
1 answer
440 views

vim emulator does not work properly in pycharm ipython notebook

PyCharm community version 2016.3, when I enable Vim Emulator and open an Ipython Notebook, it just does not work. I believe it is very easy to duplicate, and I don't know if that is a bug for PyCharm ...
  • 585
3 votes
2 answers
3k views

3D graphics in Jupyter notebook (ipynb)

I'm searching for most convenient way how to insert 3D graphics into ipython (Jupyter) notebook? I mean some simple 3D model of machines (space-crafts in my case) mostly composed of simple primitives ...
1 vote
1 answer
940 views

Jupyter Notebook hangs when it launched in background. Why?

If it launched in GUI and I left the PC and access it via my notebook, it runs ok. If it via launched jupyter notebook via SSH, it runs ok. But obviously it will be exited when the SSH is closed. If ...
1 vote
0 answers
835 views

Switching between a python 2.7 Jupyter Notebook and python 3.5 Jupyter Notebook

Due to some of the work I do and classes I am in I frequently find my self needing to use both python 2 and python 3 jupyter notebooks. I installed both notebook servers using pip (pip3 for python 3 ...
  • 185
0 votes
1 answer
81 views

Control A on Mac Terminal behaves unexpectedly while using python ipdb

When I'm using Python ipdb (and this only happens on one of my three macs), I type Ctrl-A to get to the beginning of the line (after running a few statements without issue). The cursor APPEARS to jump ...
0 votes
0 answers
112 views

General getting started with untrusted https

I have about 9 year's experience creating/maintaining minimally secured personal or departmental web sites with Linux and Apache httpd. Recently I've deployed a couple of web apps that require a ...
0 votes
2 answers
4k views

Can't import matplotlib on Anaconda (Python), on my Mac, even though it's installed on the terminal and set as a default

So basically on my Ipython I can't get it working even though it's installed, and the terminal shows that it should be working. Syntax and Error In [1]: import matplotlib.pyplot as plt -------------...
1 vote
1 answer
280 views

Getting rid of welcome message in Spyder Python IDE (Anaconda)

I am on Windows 7 64bit. Is there a way to customize the welcome message in the Spyder IDE IPython console? (I am using the Anaconda distribution.) Preferably, starting with a plain: In [1]:
  • 251
5 votes
2 answers
11k views

How to search and install package in Anaconda (Conda)

I am trying to install pandoc so I did conda install pandoc but nothing popped up and it told me to search. I searched with anaconda search -t conda pandoc and the results are below...How can I ...
  • 265
3 votes
2 answers
6k views

How can I install ipython with pip3?

I just did the following with no problem: brew install python3 pip3 install numpy pip3 install scipy But when trying: pip3 install ipython I get: Exception: Traceback (most recent call last): ...
1 vote
1 answer
3k views

500 server error using IPython notebook on Windows

I've just done a fresh install of IPython notebook on Windows 7 Professional 64 bit. The steps I took were: Install Python 3.4.1 from python.org pip install ipython[notebook] pip install pywin ...
  • 893
2 votes
1 answer
3k views

ipython notebook can't find python

I had a couple of Python 2 versions under home-brew. Since I was only using ipython notebook, I decided to uninstall all Python 2 instances, which turned out to be a bad idea because now I just get an ...
1 vote
2 answers
180 views

Is there a terminal supporting embeded graph under linux? [closed]

everyone. I want to know if there is a graphic terminal which support viewing images inline. The ipython qtconsole is very cool because it has the '%matplotlib inline' magic. But I'd like to use ...
  • 15
29 votes
1 answer
15k views

show all breakpoints when debug a python code with pdb

I am using pdb to debug a python code. I set the breakpoints in the pdb command line with b [linenumber]. Can I check all the linenumber of breakpoints? thanks.
  • 507
0 votes
1 answer
328 views

IPython QtConsole: select text to copy?

Is there any way to make QtConsole copy marked (selected) text automatically to clipboard? OS: Linux, GUI: KDE.
0 votes
0 answers
39 views

Going back to a stopped job [duplicate]

wim@wim-zenbook:~$ ipython Python 2.7.4 (default, Apr 19 2013, 18:28:01) Type "copyright", "credits" or "license" for more information. IPython 0.13.2 -- An enhanced Interactive Python. ? -&...
  • 2,988
1 vote
2 answers
2k views

How to use IPython with Python3.3 in Fedora 18

I've got both Python 3.3 and Python 2.7 installed on my PC. After installing IPython 0.13.1 on Fedora 18 using the Software installer it defaults to Python 2.7. I've little experience in both Linux ...
's user avatar
2 votes
2 answers
800 views

ipython and sublime text 2

I really love how Rstudio has a shortcut for running a line of selected code, this allows for much quicker coding. I notice more and more however, that I need to work in python as it offers a bit more ...
16 votes
2 answers
8k views

%paste magic function on ipython3

I'm using ipython3, installed on Ubuntu with apt-get. I can't use the paste magic function, it complains about missing Tkinter. But I do have Tkinter and the same thing works fine on ipython (2). ...
  • 2,988
2 votes
3 answers
977 views

forcing windows 7 not to open python script executables (specificaly pip an IPython) in a new popup cmd window

Meaning that when I run from the command line something like: Ipython or pip install somelib windows runs them in a new cmd window instead of in the current window. therefor if there is an error ...
  • 163
6 votes
2 answers
3k views

Where are ipython key bindings documented?

I'm mostly loving ipython, but exasperated by my efforts to find any documentation for keyboard shortcuts. I can arrow/scroll through my command history, I can use ctrl r to search my history, a la ...
  • 262
4 votes
1 answer
556 views

IPython plots show up in IDLE

This quite stupid, but every time i use plot() with IPython it pop's up in the IDLE window opposed to showning it inline. How can I change this?
  • 145
1 vote
2 answers
883 views

iPython in Terminal.app: multi-line editing

I'm using iPython in Terminal.app (on Mac), and when I scrollback to a multi-line block it's really slow moving between lines. Is there a keybinding (or can I configure one) to make it possible to ...
  • 2,824
2 votes
2 answers
2k views

IPython HTML notebook multiple users login

IPython HTML notebook looks incredible! http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html I'm thinking of using it for our computational/numerics classes, but can't find an documented ...
  • 141
2 votes
0 answers
92 views

How I can register ipython in Mac OS with latest versions of python?

I have installed ipython through easy_install but it didn't create the file in /usr/local/bin/ as usual. I know if I use older version of easy_install of python, for example 2.6 I have this file ...
  • 121
1 vote
2 answers
64 views

OSX - what would cause a d.txt file to contain all my Terminal history to appear in my homedir?

I was working when I noticed a file in my homedir called d.txt. It contained all of my iPython work I'd been doing in the last hour or so. Is this something that my Terminal app did, or something that ...
  • 1,154
4 votes
3 answers
1k views

CTRL-[keys] and arrows not functionning in terminal / ipython

I'm using ipython Inside the python shell, when I press up instead of showing the last command, it prints ^[[A also CTRL-[keys] are fubar. CTRL-p prints ^P Everything is normal under terminal\...
  • 600
3 votes
1 answer
1k views

How to config ipython3-3.2 on Mac OS X?

I installed IPython with Macport: $ sudo port install py32-ipython It issues errors when I start it: $ ipython3-3.2 /opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-...
  • 8,155
3 votes
1 answer
2k views

Can I redo/undo in ipython shell?

A feature in bpython called rewind. Is there some similar key bindings?
  • 331
2 votes
1 answer
2k views

Error running IPython3 on XP: TypeError: _isdir() takes exactly 1 argument (0 given)

<UPDATE> Never did get IPython3 to work under Windows, but I did manage to get it to work on my local CentOS server (after much frustration) by eventually discovering the absolutely ...