Thomas Kluyver | 10 Feb 01:09
Picon
Gravatar

Re: editing a file on a mac

On 9 February 2012 23:13, Comer Duncan <comer.duncan <at> gmail.com> wrote:
I am using terminal for ipython.  I don't have Qt installed.

I have tried setting the $EDITOR env variable /usr/bin/vi, sourced my
.cshrc file, then ran ipython notebook --profile sympy [...]

Ah, OK, this is in the notebook. When we talk about "terminal ipython", we mean the interface you get when you just type "ipython" at a terminal. $EDITOR is only relevant for that interface.

I don't think %edit is connected to the notebook yet (I've just tried it, it doesn't do anything here either). I think the plan is to have a script-editing mode in the browser using the same tool we have for editing cells. Brian can probably tell you more about that.

Best wishes,
Thomas

P.S. Because of an oddity of our mailing lists, please remember to reply-all for these discussions, so that other people can see it and join in.
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Florian Lindner | 9 Feb 22:59
Picon
Gravatar

Re: Is iPython useful for this scenario?

2012/2/7 Brian Granger <ellisonbg <at> gmail.com>:
> Florian,
>
> On Tue, Feb 7, 2012 at 6:04 AM, Florian Lindner <mailinglists <at> xgm.de> wrote:
>> 2012/2/6 Brian Granger <ellisonbg <at> gmail.com>:
>>> On Sat, Feb 4, 2012 at 2:03 PM, Florian Lindner <mailinglists <at> xgm.de> wrote:
>>
>>>> I'm currently working on a control-/queue-management software for a
>>>> CFD simulation system. If consists of three parts:
>>>>
>>>> - A client communicates with the CFD system. It can be long running.
>>>> The client can also be run standalone.
>>>>
>>>> - A server which does the queue management and starts up the clients.
>>>> It is non-interactive
>>>>
>>>> - A server interface which the user uses to talk to the server, e.g.
>>>> to enqueue new jobs.
>>>
>>> I am following your design here, but the naming of things is a bit
>>> backwards from IPython.  Here is our terminology:
>>>
>>> * Engine = runs on a compute node and does the actual computation.
>>> This is where the CFD sim would run.
>>> * Controller = Schedules tasks to engines using lightweight, low
>>> latency scheduler.
>>> * Cluster = Starts Engines/Controller using batch system.
>>> * Client = Frontend process that the users uses to talk to the above.
>>>
>>>> Currently they are communicating via XMLRPC (from python stdlib):
>>>>
>>>> client <---- server <---- server interface.
>>>
>>> This architecture is partially reinventing everything in
>>> IPython.parallel.  I would just use IPython.parallel and take
>>> advantage of everything we have there.  It is extremely powerful and
>>> will out perform XMLRPC by a long shot.
>>>
>>>> A this time the system works only localhost and with one client.
>>>
>>> IPython supports a wide range of cluster configurations (PBS, Torque,
>>> mpiexec, SSH, etc.) and multiple engines and clients.
>>>
>>>> Before continue to extend it I wonder if iPython could be useful for
>>>> network communication and process management. I browsed through the
>>>> docs but I'm not entirely sure if I got the ideas of iPython right.
>>>>
>>>> The user should not get in contact with iPython. The software is not
>>>> doing and probably will never do any numerical demanding calculations
>>>> itself.
>>>>
>>>> Is iPython useful in the scenario?
>>>
>>> It would be extremely useful.  I would check out our cluster docs here:
>>>
>>> http://ipython.org/ipython-doc/dev/parallel/index.html
>>>
>>> The notebook would also be useful as well:
>>>
>>> http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html
>>
>> Ok, I'm still unsure about the ideas behind it all...
>>
>> Given I have a working SSH connection with passwordless authentication.
>>
>> Currently my engine is used like: flof.py case.conf. case.conf
>> contains the steps for pre-processing, solving and post-processing.
>> Data (= the case) is a directory structure and thus file based.
>> flof.py would be the engine.
>
> You would have to do some refactoring and make the code in flof.py a
> Python library that you can import and run.
>
>> - Code Distribution: Does iPython provides a method for code
>> distribution or does the code needs to copied manually before starting
>> it on a remote computing node? Is iPython starting the remote process?
>
> Yes for some cases it can do that, but in most cases you want to have
> the code installed on the compute nodes.
>
>> - Data Distribution: Does iPython provides a method for data
>> distribution (copy over the case to a remote node)? I think I read
>> that there is no data distribution method.
>
> Yes, definitely.

http://ipython.org/ipython-doc/stable/parallel/parallel_process.html says:
"SSH mode does not do any file movement, so you will need to
distribute configuration files manually." I need to copy over files (a
directory)

>> My server (controller) starts up the engines.
>>
>> - Can I tell the controller to start up a specific job on a specific machine?
>
> Yes, see the DirectView docs.

I've seen it and also played around with it though found no way to
launch an engine on a specific host. Didn't dive further into this.

>> The matter is that I don't need queue management, load balancing etc.
>> I'm looking for a tool that helps me controlling the remote jobs,
>> checking and exchanging information about their status and - if needed
>> - kill them. (a job is a process instance of flof.py)
>
> I strongly encourage you to read the docs I linked to above.  It will
> answer all of these questions and more.

I did read them and unfortunatly they are not.

Well I will try to split up my questions in following threads.

Regards,

Florian
Thomas Kluyver | 9 Feb 22:56
Picon
Gravatar

Fwd: editing a file on a mac

That's OK. In any case, it's working for me with the development version.

In what form are you using IPython? Terminal, Qt console, or notebook? The Qt console and the notebook use a different %edit function from that in the terminal.

If this is in the terminal, can you try setting the $EDITOR environment variable to an editor you know is there on the system, and see if that makes a difference?

Best wishes,
Thomas


On 9 February 2012 21:25, Comer Duncan <comer.duncan <at> gmail.com> wrote:
Hi Thomas,

No, I did not try it until today.  Sorry.

Comer

On Thu, Feb 9, 2012 at 4:24 PM, Thomas Kluyver <takowl <at> gmail.com> wrote:
> On 9 February 2012 21:18, Comer Duncan <comer.duncan <at> gmail.com> wrote:
>>
>> I am running  the development version .13 on a mac running lion.  I
>> have been using this laptop for work on notebooks using .12 and
>> yesterday installed .13.
>
>
> Just to clarify: did you try this with 0.12 before you upgraded? It's
> possible that something's got broken in the development version.
>
> Thomas


_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Comer Duncan | 9 Feb 22:18
Picon

editing a file on a mac

Hi,

I am not sure I am using the %edit magic correctly, as it does not
yield what I hope..:).

Namely,  I  issue

%edit

and I get a little blurb telling me what file will be temporarily
opened in /var/folders/3f/n6537g3d6pz36xj2w5y3rcr00000gq/T/ipython_edit_ZZynJx.py.
 However, vi does not open.  I have not set any env variables
mentioned in the IPython.Magic.html.  I looked for the file in the
indicated directory and nothing is there.  So, what am I doing wrong
in using %edit?

I want to edit a file called comer.py so I tried

%edit comer.py

comer.py lives in the notebooks directory where I am working on
existing notebooks.

What is the correct way to awaken the editor?

I am running  the development version .13 on a mac running lion.  I
have been using this laptop for work on notebooks using .12 and
yesterday installed .13.

Thanks.

Comer
Paul Jurczak | 9 Feb 18:37
Picon
Favicon
Gravatar

Incomplete Windows 7 installation

Hello,

Here are the steps I made on Windows 64-bit with no prior Python installation:
1.       Install Python 3.x (Windows installer) from http://python.org/.
2.       Install IPython (Windows installer) from http://ipython.org/download.html.

Installation completed successfully, log file doesn't have any errors, but there is no IPython on Start
Menu or Desktop. There are several executables in Python32/Scripts directory, but running them
produces errors (ipython3 -> "ImportError: No module named pkg_resources").

Is there an installation step I missed?

Thank you in advance,
Paul
Ullrich Koethe | 9 Feb 17:50
Picon
Gravatar

Notebook doesn't produce output

Hi,

I'm very impressed with the new notebook functionality, but I cannot get 
it to work on my computer (Windows 7, 64-bit, python 2.7, ipython 0.12, 
Firefox 10.0). When I start the notebook via

$ ipython notebook

the notebook management page correctly shows up in Firefox, and I can 
create new notebooks. Upon notebook creation, a kernel is correctly 
started, as I confirmed by a console client started with "--existing", 
which works normally. However, when I try to execute commands within the 
notebook (Shift-Enter), the prompt changes into

   In[*]

and a new cell is created, but no output appears. In fact, the command 
has no effect at all, as I confirmed in the other client.

How can I proceed to fix the problem?

Thanks!
Ulli
Comer Duncan | 9 Feb 15:25
Picon

question about deleting cellS in version .13

Hi,

I am using version .13 and note that the converted from .12 notebook
works fine of course. However, in the original notebook I had a group
of cells which were not deleted before I ran ipython .13 which
resulted in the .12 notebook being appropriately converted.  I note
that in order to delete the group of cells, I need to (laboriously)
use the pull down menu to delete each one by one.  Having it possible
to delete a group of cells would be cool.  Am I missing something or
is there a way to do that other than one at a time?

Comer
Picon

QTextCursor::setPosition: Position '16786' out of range

Hi:

Sometimes (rather infrequently) when using the IPython QtConsole I get
the following error message (in the terminal where I launched the
QtConsole):

QTextCursor::setPosition: Position '16786' out of range

And an incorrect behavior with the prompt in the QtConsole itself. I
am attaching a screenshot of the QTConsole right after I get the
error.

I am running Python 2.7.2, IPython 0.12 in an Ubuntu 11.10 machine.

Alejandro.
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Paul Ivanov | 8 Feb 09:33
Picon
Gravatar

how to pitch in to help IPython (documentation)

Greetings friends of IPython! 

If you use and love IPython as much as I do - then surely it
deserves to receive a little bit of one-on-one attention and
personalized care from you (as all beloved packaged should). 

"But how do I get started? It seems like I need a PhD in ZeroMQ to
even start, and my [forthcoming?] degree is in X, not ZeroMQ!"

Fear not! One easy, but very valuable way to contribute is by
improving the documentation. Take a look at this pull request:
https://github.com/ipython/ipython/pull/1385

There are probably many-many instances of such doc-only
improvements which can be made all throughout IPython. It would
be a good opportunity for someone with time on their hands to go
through, spot places where small ReST changes would improve
readability, and spend the time to iteratively improving and
rebuilding the docs to verify these changes.

All you'll have to do is run `make html` in your ipython/docs
directory - which luckily only takes a long time to build the docs the
first time - after that, each run essentially only rebuilds the
portions which were changed from the previous. And you'll feel
good!

Consider this parting thought: Fernando Perez started IPython
as his PhD thesis *procrastination* project. Isn't it time you
joined (or renewed your commitment to) such a rich tradition?

best,
--

-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 
Thomas Kluyver | 8 Feb 00:16
Picon
Gravatar

Re: a question about multiple versions of ipython

On 7 February 2012 22:59, Comer Duncan <comer.duncan <at> gmail.com> wrote:
Thanks Min and Thomas for your suggestions. I have now installed
vituralenv and have used ENV/bin/pip to install sphinx, pygments,
nose, pexpect, and pyzmq.  readline is already in the ENV dir or got
put there when virtualenv was installed.  I have also git cloned the
development version.

However, when I try to run ENV/bin/ipython it chokes with:

[homelap-3:~] comerduncan% ~/Downloads/ENV/bin/ipython
Traceback (most recent call last):
 File "/Users/comerduncan/Downloads/ENV/bin/ipython", line 8, in <module>
   load_entry_point('ipython==0.13.dev', 'console_scripts', 'ipython')()
 File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in
load_entry_point
 File "build/bdist.linux-i686/egg/pkg_resources.py", line 2220, in
load_entry_point
ImportError: Entry point ('console_scripts', 'ipython') not found

Alas, something is not right. Can you please let me know what I have
not yet done or what I may have done incorrectly.

I've not seen this error message before. After cloning the IPython repository, did you install it in the virtualenv?

source ENV/bin/activate   # This puts ENV/bin on your path, so you can run commands directly from there.
cd path/to/ipython/repo
python setup.py install

Thomas
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Comer Duncan | 7 Feb 22:42
Picon

a question about multiple versions of ipython

Hi,

I have ipython .12 installed on my mac laptop and am using a lot on a
project.  It is quite a useful tool.

I am wanting to also have installed the development version, but also
want to have .12 installed and safe.  I looked at the instructions for
installing the development version but it seems that if I do that I
will overwrite the current 0.12. Since I need 0.12 for my project I
definitely want to keep it safe but I also really want to be able to
pull occasionally the development version.  Can you guys please tell
me how to have both say .12 and .13-development happily installed but
not clobbering each other?

Sorry if this is a naive question. Just want to be safe and am not
really sure what I am doing.

Thanks for your help.

Comer

Gmane