pkmital | 9 Jul 06:29 2016
Picon
Gravatar

readline-like behavior w/ ipython 5 prompt toolkit?

Hi,

I am very impressed with iPython 5!  I was hoping there was an option for tab completion which would have the old behavior w/ readline, which would show every single result in the history without a pop up/further interaction.  Is it no longer possible?

Thanks!
Parag
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
A Lynch | 5 Jul 15:20 2016
Picon

Multiple InProcessKernel in one python process

Hia ll,

is it possible to have more than one InProcessKernel (in my case, within PyQt) running independently in one python process, and to communicate with them from (multiple) InProcessClients?

thanks!
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
Paul Harrison | 1 Jun 00:19 2016
Picon

startup error


Hi,

I'm new to ipython and have it installed on a SUSE Linux Enterprise
Desktop v12 SP1 system with all the latest OS updates applied.

However, when I launch it, I get the output pasted here:
http://pastebin.com/SYVsKKi2

Can anyone give me any pointers?

Thanks in advance,

Paul
Florian Lindner | 20 May 12:59 2016
Picon

iPython executes org.py in directory

Hello,

I have a file named org.py in the current working directory. Whenever I start ipython 4.2.0, it executes
this file:

florian <at> asaru ~/scratch/calorg (git)-[master] % ipython
[ org.py output ]
Python 3.5.1 (default, Mar  3 2016, 09:29:07) 
Type "copyright", "credits" or "license" for more information.

IPython 4.2.0 -- An enhanced Interactive Python.
[...]

florian <at> asaru ~/scratch/calorg (git)-[master] % mv org.py foobar.py

florian <at> asaru ~/scratch/calorg (git)-[master] % ipython
Python 3.5.1 (default, Mar  3 2016, 09:29:07) 
Type "copyright", "credits" or "license" for more information.

IPython 4.2.0 -- An enhanced Interactive Python.
[...]

When I rename the file so something else it is no being executed.

org.py is an ordinary python script, without a shebang, and without a def __main__ (but some code on the
leftmost indent).

Why is file being executed? Is its name somehow special? I haven't found anything about org.py being special.

Thanks,
Florian
f.boulahya@brgm.fr | 21 Apr 09:07 2016
Picon

RuntimeError: maximum recursion depth exceeded when launching ipython

Dear all,

I have installed ipython module within anaconda 2.4.0 on a CentOS release
6.4 (conda install + conda update). I have no error during installation but
when I start iPython I have the following message : RuntimeError: maximum
recursion depth exceeded. I also try an installation thanks to pip but I
have the same behaviour.
Any ideas?

In advance, thanks.

Faïza

--
View this message in context: http://python.6.x6.nabble.com/RuntimeError-maximum-recursion-depth-exceeded-when-launching-ipython-tp5188986.html
Sent from the IPython - User mailing list archive at Nabble.com.
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
Ruslan Dautkhanov | 10 Mar 00:24 2016
Picon

passing stdin to a script

Can't find in documentation how to pass stdin to a 
 %%script perl 
 perl code .. 

I have to pass a Python list to a Perl (or a bash) script through stdin.

Was trying to use {} block 
and also tried $variable but it doesn't seems to work.. 


--
Ruslan Dautkhanov
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
starigazey | 24 Feb 22:05 2016
Picon

Re: Plot not showing up in Jupyter.


Thank you William,

Both of your suggestions worked.  I wonder why the author didn't include this, or is this command relative to Jupyter and not the  IP[y]: Notebook version?
I looked at his notebook and it doesn't appear yet the image shows up as a result of the plt.figure()method....OK I just googled this and found that you can configure Jupyter to make matplotlib inline by default, so his notebook must have been configured this was :)  

Thanks again,
Ana



-----Original Message-----
From: ipython-user-request <ipython-user-request <at> scipy.org>
To: ipython-user <ipython-user <at> scipy.org>
Sent: Wed, Feb 24, 2016 4:00 am
Subject: IPython-User Digest, Vol 147, Issue 2

Send IPython-User mailing list submissions to
ipython-user <at> scipy.org

To subscribe or unsubscribe via the World Wide Web, visit
https://mail.scipy.org/mailman/listinfo/ipython-user
or, via email, send a message with subject or body 'help' to
ipython-user-request <at> scipy.org

You can reach the person managing the list at
ipython-user-owner <at> scipy.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of IPython-User digest..."


Today's Topics:

1. Re: Plot not showing up in Jupyter. (William Shipman)


----------------------------------------------------------------------

Message: 1
Date: Tue, 23 Feb 2016 20:52:40 +0200
From: William Shipman <shipman.william <at> gmail.com>
To: "Discussions about using IPython. http://ipython.org"
<ipython-user <at> scipy.org>
Subject: Re: [IPython-User] Plot not showing up in Jupyter.
Message-ID:
<CAOUkfAyswdcsbdM+jkz0e3Eqbb6HeqyYhcrDoGotJ807O8PgzQ <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You need to add

%matplotlib inline

before you want to draw your plots, e.g. at the start of your
notebook. Alternatively call plt.show() but that will open separate
figure windows rather than showing the figures in the notebook.


On 23 February 2016 at 20:30, <starigazey <at> aol.com> wrote:

> Hello,
> I?m new to Jupyter and am also learning python and pandas for data
> analysis.
> The version of the notebook server is *4.0.6* and is running on:
> Python 2.7.10 |Anaconda 2.4.0 (64-bit)| (default, Oct 21 2015, 19:35:23)
> [MSC v.1500 64 bit (AMD64)]
>
> I'm working on a Win/7 64bit pro system.
>
> Currently I?m watching Alfred Essa?s video series and am having an issue
> with Jupyter in regards to one of the lessons. (
> https://www.youtube.com/watch?v=rNmn8bLFgdg)
> <https://www.youtube.com/watch?v=rNmn8bLFgdg>
> I?m not sure how much of the code I need to submit, but basically I?ve
> created a subset of salary data, from which I extract the top 10 payees. I?ve
> imported pandas as pd and matplotlib.pyplot as plt into the notebook.
> Everything is working fine and I?ve been able to verify my data. My last
> bit of code is:
>
> *#create a data set of the top 10 paid players*
> top10 = yr2010.Salary.sort_values(ascending =False).head(10)
>
> This creates a series object of the data and then I tried to plot it and
> that?s where the problem lies.
> Here?s my code to plot:
>
> #plot highest paid
> plt.figure()
> top10.plot(label='Salaries')
> plt.xticks(rotation='vertical')
> plt.legend()
>
> and the output is this:
> <matplotlib.legend.Legend at 0xbff72e8>
>
> No plot image.
>
> Note: I have copied all of my code and run it successfully, producing
> the plotted image in both IDLE and the Spyder IDE.
>
> The video series is a few years old and I?m wondering if there is a
> difference between Jupyter and IP[y]: Notebook versions that may require a
> code change in order for the plot to show up. The videos show the Mr.
> Essa using
> IP[y]: Notebook.
>
> Thanks and I look forward to any assistance.
> Ana
>
> _______________________________________________
> IPython-User mailing list
> IPython-User <at> scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.scipy.org/pipermail/ipython-user/attachments/20160223/ca19107d/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user


------------------------------

End of IPython-User Digest, Vol 147, Issue 2
********************************************
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
starigazey | 23 Feb 19:30 2016
Picon

Plot not showing up in Jupyter.

Hello,
I’m new to Jupyter and am also learning python and pandas for data analysis.
The version of the notebook server is 4.0.6 and is running on:
Python 2.7.10 |Anaconda 2.4.0 (64-bit)| (default, Oct 21 2015, 19:35:23) [MSC v.1500 64 bit (AMD64)]

I'm working on a Win/7 64bit pro system.
 
Currently I’m watching Alfred Essa’s video series and am having an issue with Jupyter in regards to one of the lessons.  (https://www.youtube.com/watch?v=rNmn8bLFgdg)
I’m not sure how much of the code I need to submit, but basically I’ve created a subset of salary data, from which I extract the top 10 payees.  I’ve imported pandas as pd and matplotlib.pyplot as plt into the notebook. Everything is working fine and I’ve been able to verify my data. My last bit of code is:

#create a data set of the top 10 paid players
top10 = yr2010.Salary.sort_values(ascending =False).head(10)
 
This creates a series object of the data and then I tried to plot it and that’s where the problem lies.
Here’s my code to plot:

#plot highest paid
plt.figure()
top10.plot(label='Salaries')
plt.xticks(rotation='vertical')
plt.legend()
 
and the output is this:
<matplotlib.legend.Legend at 0xbff72e8>
 
No plot image.
 
Note:  I have copied all of my code and run it successfully, producing the plotted image in both IDLE and the Spyder IDE.
 
The video series is a few years old and I’m wondering if there is a difference between Jupyter and IP[y]: Notebook versions that may require a code change in order for the plot to show up. The videos show the Mr. Essa using
IP[y]: Notebook.
 
Thanks and I look forward to any assistance.
Ana
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
jandyman | 6 Jan 00:05 2016
Picon

stupid newbie question

I'm sure this is beyond stupid, but I cannot figure out how to get an ultra
simple command history recall function to work. If I say "%hist -g mystring"
and get a list of commands, I'll see a "column" on the left with appear to
be command numbers. Let's say that I now want to put command 45 on the
prompt line, edit it, and then execute it. I would think I would say
"%recall 45". But this command doesn't seem to do anything. What fundamental
mistake am I making. I have tried this in shells in both IEP and Spyder.

Thanks for any help!

- Andy

--
View this message in context: http://python.6.x6.nabble.com/stupid-newbie-question-tp5180869.html
Sent from the IPython - User mailing list archive at Nabble.com.
Hughe Chung | 31 Dec 11:27 2015
Picon
Gravatar

What would cause empty output cache? And how to fix it?


Hi,

IPython3 worked fine so I installed jupyter, qtconsole. While I was 
using jupyter, qtconsole back and forth, I noticed qtconsole stopped 
showing [Out ##] prompt. It only showed the output result of input cell.

And IPython 4.0.1 also stopped caching output cells and I couldn't use 
the default variables, _, __, ___, and _[number].

I played with configuration variables that related to caching and 
history for hours in vain. Reinstallation of IPython 4.0.1 fixed it 
anyway.

 <at> -MinRK

>    python3 -m pip install ipython
I managed to install ipython 4.0.1 after spending hours. I used pip3 
install [module] method.
http://wp.me/p1fjgj-1ZT
Darren Govoni | 30 Dec 16:53 2015

FIxed ports for engine/cluster

Hi,
  I notice every time I run a new cluster it generates the engine json file with all new ports. Problem is this doesn't work real well in a cloud where ports are strictly governed. Is there any way I can assign the set of ports to use?

thanks 

_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user

Gmane