Fernando Perez | 1 May 07:14
Picon
Gravatar

Re: Status of the NBShell project

Hi Duane,

On 4/30/07, Duane Kaufman <duaneklean <at> tds.net> wrote:
> Hello,
>
> I was wondering if anyone else had found issues with the NBShell export facility. I get an error when I try to export:

The nbshell was a prototype that no one is currently really
developing, so I'm not too surprised to see it's broken.  Those ideas
continue to matter, but we're now refactoring the core to make such a
system easier to implement on top of a clean architecture.  But for
now, I'm afraid that nbshell shouldn't be considered functional in any
way.

regards,

f
Jörgen Stenarson | 1 May 14:00
Picon

Re: Solved? Re: Slight Problem: Re: Test results (good?)

I don't think it is possible to have both at this time. Because 
rlcompleter in stdlib imports readline explictly (I believe this has 
changed in 2.5). This dependency forced us to create readline.py in 
site-packages when installing pyreadline. Eventually when 
ipython/pyreadline requires 2.5 or higher we should be able to have a 
choice of different readline implementations.

/Jörgen

Ryan Krauss skrev:
> So, I had readline and pyreadline both installed.  I deleted the
> readline directory from site-packages and everything seems to be cool.
> I don't know why I had both.  I can't think of ever intentionally
> installing either except as a dependancy for IPython (unless they both
> come with Enthought-Python).  Is this the right solution?  Should I
> need both?  Should I be able to have both and set some rc setting to
> tell IPython which to use?
> 
> Thanks,
> 
> Ryan
> 
> On 4/30/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:
>> Thanks Jörgen, we may be making some progress.
>>
>> I can execute
>>  import pyreadline
>> pyreadline.clear_history
>>
>> without error, but the error I am getting everytime I run anything is
(Continue reading)

Ryan Krauss | 2 May 18:15
Picon

small problem and feature request for 0.8 egg

I am trying out Enstaller this morning as a way to get my students up
and running with minimal effort on their part.  I added the ipython
repository easily enough and installed the 0.8.0 egg, but I ran into
one small problem:

c:\python24\lib\site-packages\ipython-0.8.0-py2.4.egg\IPython\numutils.py
     34 import sys
     35
---> 36 import Numeric
     37 from Numeric import *
     38

ImportError: No module named Numeric
WARNING: Loading of IPython.numutils failed.

As part of my own preferences, I don't have Numeric installed at all
(strictly numpy).  Do I just need to comment out the last half of this
line of my ipythonrc-scipy file:
import_all scipy IPython.numutils

(sorry I forgot to mention that I am starting IPython with -pylab -p scipy).

Does the 0.8.0 egg include the rc files?  Did the ones I have come
from the enthought egg?  Do I need to import IPython.numutils at all?
Is there a Numeric-free version of numutils?

Lastly, can the egg be made to add a start menu short cut that
includes "-pylab -p scipy"?

Thanks,
(Continue reading)

Ville M. Vainio | 2 May 18:36
Picon
Gravatar

Re: small problem and feature request for 0.8 egg

On 5/2/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:

> As part of my own preferences, I don't have Numeric installed at all
> (strictly numpy).  Do I just need to comment out the last half of this
> line of my ipythonrc-scipy file:
> import_all scipy IPython.numutils

Yes. Howewer, why don't you do your own ipy_profile_sci.py? By looking
at ipythonrc-scipy it would be trivial and we could use a simple
example of how to create a profile...

> Does the 0.8.0 egg include the rc files?  Did the ones I have come
> from the enthought egg?  Do I need to import IPython.numutils at all?

Try running %upgrade and see what it prints, it should show you the
directories where it copies the rc files from.

I get:

[C:\ipython]|4> %upgrade
> C:\Python25\python.exe "C:\Python25\lib\site-packages\IPython\upgrade_dir.py"
"C:\Python25\lib\site-packages\IPython\UserConfig" "c:\home\_ipython"

> Lastly, can the egg be made to add a start menu short cut that
> includes "-pylab -p scipy"?

Possibly, though I don't know how.

--

-- 
Ville M. Vainio - vivainio.googlepages.com
(Continue reading)

Ryan Krauss | 2 May 18:49
Picon

Re: small problem and feature request for 0.8 egg

When I type %upgrade, it prints some potentially useful information
briefly and then starts printing jiberish and then starts beeping the
system speaker in an unbelievable annoying manner (loud and
repetative).

I am trying to create an effortless install for my students, so
editting a custom RC file seems like a bad idea - unless an egg can be
created that installs this RC file automatically.

Ryan

On 5/2/07, Ville M. Vainio <vivainio <at> gmail.com> wrote:
> On 5/2/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:
>
> > As part of my own preferences, I don't have Numeric installed at all
> > (strictly numpy).  Do I just need to comment out the last half of this
> > line of my ipythonrc-scipy file:
> > import_all scipy IPython.numutils
>
> Yes. Howewer, why don't you do your own ipy_profile_sci.py? By looking
> at ipythonrc-scipy it would be trivial and we could use a simple
> example of how to create a profile...
>
> > Does the 0.8.0 egg include the rc files?  Did the ones I have come
> > from the enthought egg?  Do I need to import IPython.numutils at all?
>
> Try running %upgrade and see what it prints, it should show you the
> directories where it copies the rc files from.
>
> I get:
(Continue reading)

Ville M. Vainio | 2 May 19:07
Picon
Gravatar

Re: small problem and feature request for 0.8 egg

On 5/2/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:

> When I type %upgrade, it prints some potentially useful information
> briefly and then starts printing jiberish and then starts beeping the
> system speaker in an unbelievable annoying manner (loud and
> repetative).

Yeah, sorry about that. It's fixed in svn. Perhaps you could rename
your _ipython directory for a while and try again?

> I am trying to create an effortless install for my students, so
> editting a custom RC file seems like a bad idea - unless an egg can be
> created that installs this RC file automatically.

New style profiles (e.g. ipy_profile_sh.py) are normal python files
that are imported in ipython. You can easily create an egg that has
the profile as simple python module and import it in your
ipy_user_conf.py.

RC files are deprecated and only retained for backwards compatibility.

--

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
Ville M. Vainio | 2 May 19:10
Picon
Gravatar

Re: small problem and feature request for 0.8 egg

On 5/2/07, Ville M. Vainio <vivainio <at> gmail.com> wrote:

> New style profiles (e.g. ipy_profile_sh.py) are normal python files
> that are imported in ipython. You can easily create an egg that has
> the profile as simple python module and import it in your
> ipy_user_conf.py.

And a quick thought - this has the implication that you could publish
easy_install:able IPython extensions, profiles and configuration
packages.

--

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
Ryan Krauss | 2 May 19:13
Picon

Re: small problem and feature request for 0.8 egg

So, is there an example some where of a new style rc file that does
what the scipy old one did?

Ryan

On 5/2/07, Ville M. Vainio <vivainio <at> gmail.com> wrote:
> On 5/2/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:
>
> > When I type %upgrade, it prints some potentially useful information
> > briefly and then starts printing jiberish and then starts beeping the
> > system speaker in an unbelievable annoying manner (loud and
> > repetative).
>
> Yeah, sorry about that. It's fixed in svn. Perhaps you could rename
> your _ipython directory for a while and try again?
>
> > I am trying to create an effortless install for my students, so
> > editting a custom RC file seems like a bad idea - unless an egg can be
> > created that installs this RC file automatically.
>
> New style profiles (e.g. ipy_profile_sh.py) are normal python files
> that are imported in ipython. You can easily create an egg that has
> the profile as simple python module and import it in your
> ipy_user_conf.py.
>
> RC files are deprecated and only retained for backwards compatibility.
>
> --
> Ville M. Vainio - vivainio.googlepages.com
> blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
(Continue reading)

Ville M. Vainio | 2 May 19:19
Picon
Gravatar

Re: small problem and feature request for 0.8 egg

On 5/2/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:

> So, is there an example some where of a new style rc file that does
> what the scipy old one did?

Not yet, but see _ipython/ipy_profile_sh.py for the idea. It's rather
simple, really (if you only take a look at the 'main()' function.

--

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
Fernando Perez | 2 May 19:19
Picon
Gravatar

Re: small problem and feature request for 0.8 egg

On 5/2/07, Ryan Krauss <ryanlists <at> gmail.com> wrote:
> I am trying out Enstaller this morning as a way to get my students up
> and running with minimal effort on their part.  I added the ipython
> repository easily enough and installed the 0.8.0 egg, but I ran into
> one small problem:

Don't bother with using numutils at all anymore.  I'm not removing it
flat out just in case someone out there still uses it, but the bulk of
what was good in that module, I sent to Travis long ago and is in
numpy itself by now.

That's one module that will NOT make it over into the new branch, so
you can just set your own profiles to use numpy itself.  There are one
or two little utilities in there that may survive, but by and large
numpy has absorbed numutils' functionality.

Cheers,

f

Gmane