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,
(Continue reading)

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
janpenguin | 24 Dec 12:01 2015
Picon
Gravatar

How to upgrade or install Ipython for python 3.x support?

Hi,

I mostly use ipython as SymPy interface that serves as CAS (Computer 
Algebra System) application in Devuan (Debian without systemd) Linux.

The ipython supports python 2.x I believe.

$ ipython --pylab
Python 2.7.10+ (default, Oct 10 2015, 09:11:24)
Type "copyright", "credits" or "license" for more information.

IPython 2.3.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg

I'm planning to replace all previous python codes I've written to Python 
3.x. Is there Ipython version that supports Python 3.x?

Regards,
Hughe
Brian Merchant | 10 Dec 18:45 2015
Picon

totally replacing bash with IPython on my Linux system

I'd like to replace bash with IPython on my system, so that even files like .profile are in Python rather than shell script.

I have some confusion on the topic, even though asking a few questions on the matter. Here are the questions I have asked previously:

1) How can I replace bash with Python? http://unix.stackexchange.com/questions/176091/how-can-i-replace-bash-with-python

From the answer to that question, I learned how to automatically replace bash with IPython after log in.

2) .profile is written in shell script -- can I get my system to understand that I want it to execute a Python script instead? http://unix.stackexchange.com/questions/248477/profile-is-written-in-shell-script-can-i-instead-make-my-system-understand-th

From the answer to that question, I learned that .profile file is "sourced" rather than "executed" -- that is, the lines in .profile are run one by one, as if one were typing them into the shell.

So, my question now is: how do I get my base system shell to be IPython, so that it can source ".profile" scripts that have IPython magics/Python written inside them? For example, I'd like to write my .profile file using IPython magics/Python.

Kind regards,
Brian






_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user
Fernando Perez | 19 Nov 22:42 2015
Picon
Gravatar

[JOB] Project Jupyter is hiring two postdoctoral fellows <at> UC Berkeley.

Hi all,

We are delighted to announce today that Project Jupyter/IPython has two postdoctoral fellowships open at UC Berkeley, open immediately.  Interested candidates can apply here:

https://aprecruit.berkeley.edu/apply/JPF00899

We hope to find candidates who will work on a number of challenging questions over the next few years, as described in our grant proposal here:


Interested candidates should carefully read that proposal before applying to familiarize themselves with the full scope of the questions we intend to tackle.

We'd like to thank the support of the Helmsley Trust, the Gordon and Betty Moore Foundation and the Alfred P. Sloan Foundation.

Cheers,

Brian Granger and Fernando Perez.

--
Fernando Perez ( <at> fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
https://mail.scipy.org/mailman/listinfo/ipython-user

Gmane