Patrick Surry | 16 Apr 15:52 2014
Picon

Can I interpolate python variables into cell magics?

This seems like a stupid question, but if I'm using a cell magic like %%html or %%writefile, is there any way I can interpolate
data from notebook variables into the cell?  A kind of macro substitution if you will.

Thanks,
Patrick
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
bhaskarama | 14 Apr 16:23 2014
Picon

Change in behavior of parallel.interactive in IPython 2.0?

I have some code that has started to fail after upgrading to 2.0.  The setup
is that I have a module foo, containing a function bar decorated with
parallel.interactive.  This function refers to some variable baz defined at
global scope in module foo.  I have a calling function qux, also in foo,
that calls bar, using either Python map, or dview.map_sync.  This is
failing, because bar is not able to see the variable baz.  Has something
changed in the way parallel.interactive works that would cause this?

--
View this message in context: http://python.6.x6.nabble.com/Change-in-behavior-of-parallel-interactive-in-IPython-2-0-tp5053466.html
Sent from the IPython - User mailing list archive at Nabble.com.
Martin Luessi | 11 Apr 13:38 2014
Picon

IPython-parallel: shutdown unused engines?

Hi,

Is there a way to shutdown unused engines when using IPython parallel?
I often use an IPython cluster on a PBS system and some of the jobs
tend to run much longer than others. At the end of the computation,
i.e., when there are fewer active jobs than engines, some engines are
just idling but using precious slots on the PBS cluster. Is there a
way to shutdown these engines while letting the unfinished jobs
continue to run?

Best,

Martin
zhangmarvin | 10 Apr 00:09 2014
Picon

Specifying known_hosts file for Client

Hi,

I've written a script to start an IPython cluster over Google Compute Engine
(GCE), and I've run into a bit of an unfortunate circumstance.

Since I'm working over many instances, I'm using SSH to allow the instances
to communicate to the master node, and vice versa. However, there seems to
be no way, in the IPython.parallel.Client class constructor, to specify
which known_hosts file to use. This causes some problems over GCE.

In GCE, the SSH commands default to 'UserKnownHostsFile=/dev/null', since
GCE recycles IP addresses so writing the instance IP's to the known_hosts
file can cause problems very quickly (e.g. man-in-the-middle attack
warnings). However, IPython.parallel.Client can't seem to deal with that,
and so I've had to alter the ssh command to write to the known_hosts file,
and then afterward do some cleanup to erase those IP's from known_hosts.

I was wondering if anyone can give me some insight as to how to deal with
this, and if there's a better way to handle this issue.

Thank you!

Marvin

--
View this message in context: http://python.6.x6.nabble.com/IPython-User-Specifying-known-hosts-file-for-Client-tp5053070.html
Sent from the IPython - User mailing list archive at Nabble.com.
Jonathan Taylor | 8 Apr 09:37 2014
Picon

blogging ipython?

I have been trying to find examples of how to take a notebook and put it in (some) blog site. There are references to Fernando's example 

http://nbviewer.ipython.org/github/fperez/blog/blob/master/120907-Blogging%20with%20the%20IPython%20Notebook.ipynb

but that doesn't seem to work with current master.

Any suggestions?

--
Jonathan Taylor                         
Dept. of Statistics                     
Sequoia Hall, 137                         
390 Serra Mall
Stanford, CA 94305
Tel:   650.723.9230
Fax:   650.725.8977
Web: http://www-stat.stanford.edu/~jtaylo
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Catherine Devlin | 5 Apr 01:06 2014
Picon

Font control in slides

Hi, everybody,

I'm prepping PyCon slides using an IPython Notebook and nbconvert, but I'm a big believer in BIG FONTS in presentations, and having some trouble making that happen.

So far I've figured out that I can copy nbconvert/templates/html/slides_reveal.tpl from my installation of IPython into a local directory, rename it to my_slide_template.tpl, and call nbconvert with

ipython nbconvert --to-slides --template my_slide_template

Then I can edit my_slide_template.tpl and control the size of *most* elements.

But not all.  For some elements, an inline style is written in with 14px font sizes, and nothing in the template can override the inline style.  This includes the content of code cells.

So,

1. How can I hack this?  I haven't found the place in the code that generates these inline styles.
2. Is there a compelling reason why code cell fonts are hardcoded?  Will I unleash evil forces into an unsuspecting world if I do manage to hack it?

Thanks so much!  
--
- Catherine
http://catherinedevlin.blogspot.com
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
MinRK | 2 Apr 07:57 2014
Picon

[ANNOUNCE] IPython 2.0.0

While April 1 may be a very loose definition of winter, IPython 2.0 is actually [out](https://pypi.python.org/pypi/ipython)!

I promise this is not an April Fool's joke, but if you don't believe me just

    pip install --upgrade ipython

to find out.

See [what's new](http://ipython.org/ipython-doc/2/whatsnew/version2.0.html) for more details, but the highlights are:

- interactive widgets for the notebook
- directory navigation in the notebook dashboard
- persistent URLs for notebooks
- a new modal user interface in the notebook
- a security model for notebooks

You can check out the [example notebooks](http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb) on nbviewer, or download them and try things out yourself.

This is the first IPython release with wheels (one for py2, one for py3, for now), so please give those a test if you can. These will be installed by default for anyone using current pip (1.5).

We plan to have 2.0.1 within a month based on initial feedback, so bring on the bug reports!

Thanks for all your support, we have a great time working on this.

-IPython HQ
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Michał Nowotka | 1 Apr 13:24 2014
Picon

How to use SSHLauncher to_send and to_fetch settings?

Hi,

I'm trying to set my IPython cluster composed of several machines. I'm planning to install ipython engines on machines living on the same nfs.
Unfortunately, the controller should be installed on machine without access to nfs.

Looking at Ipython documentation I though this is impossible to configure using ipcluster:

"Currently ipcluster requires that the IPYTHONDIR/profile_<name>/security directory live on a shared filesystem that is seen by both the controller and engines. If you don’t have a shared file system you will need to use ipcontroller and ipengine directly."

But SSH mode specific instructions, bring some hope:

"If your machines are on a shared filesystem, this step is unnecessary, and can be skipped by setting these to empty lists..."

So, if my machines are NOT on a shared filesystem, I can use to_send and to_fetch to get around, right?
The problem is, there is no example of how to set to_send and to_fetch settings in order to get it working without shared fs.
Can you give me some example, any advice, hint would be highly appreciated.

Kind regards,

Michal Nowotka
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
MinRK | 26 Mar 04:31 2014
Picon

[ANNOUNCE] IPython 2.0.0 release candidate

The first release candidate for IPython 2.0.0 is now available: http://archive.ipython.org/testing/2.0.0

Take it for a spin, and let us know if you find new issues. We still have some documentation updates to do, but barring anything unexpected, we should have our first IPython 2.0 release in a week or so.

You can install the release candidate with pip:

    pip install --pre --find-links http://archive.ipython.org/testing/2.0.0 ipython

_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Jonathan Taylor | 24 Mar 18:42 2014
Picon

Is it possible to turn off display for a cell?

I am wondering if it is possible to turn off ipython's display on a per-cell basis. Something like a "/dev/null"...

I do have a workaround but thought I would ask.

-- 
Jonathan Taylor                         
Dept. of Statistics                     
Sequoia Hall, 137                         
390 Serra Mall
Stanford, CA 94305
Tel:   650.723.9230
Fax:   650.725.8977
Web: http://www-stat.stanford.edu/~jtaylo
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Sam Price | 17 Mar 00:59 2014
Picon

calling sleep within ipython-embedded not non-blocking

I am running an embedded ipython shell within my pyqt application.
If I call 

time.sleep(10)
or
threading.Event().wait(10)

within the ipython shell my entire application becomes unresponsive for 10 seconds.

Is there a way to execute sleeps within the ipython shell, and preventing the rest of an application from pending on the ipython shell finishing the sleep.

I was following this example.
examples/inprocess/embedded_qtconsole.py
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user

Gmane