Aaron Reabow | 15 Nov 06:11 2014
Picon

Re: IPython notebook formatting (Thomas Kluyver)

Guys, can I just say that the installation of ipython notebook is amazing these days.  Bundling all of the dependencies makes this process so simple.


Great user experience

On Wed Nov 05 2014 at 12:59:45 AM Shaobo <zerocolar <at> gmail.com> wrote:

_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Phillip Feldman | 4 Nov 02:04 2014
Picon

IPython notebook formatting

When playing with the IPython notebook, I recently discovered by chance that enclosing something in double underscores causes it to be displayed in bold.  I suspect that there are more formatting options that I don't know about.  Is there a place where this sort of thing is documented?

Phillip
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Jack Zentner | 31 Oct 19:56 2014
Picon

Non-blocking QT window from the notebook

I've been using the notebook to play around with PySide and in general
everything works beautifully.  From it, I can create arbitrarily complex QT
UIs, launch them and interact with them. However, in playing with PySide I
thought it would be really useful if I could prototype UI elements from the
notebook without having to load and then close the QT window to evaluate and
make changes.  I'm thinking of a non-blocking UI that allows for interactive
building and updating kind of like you can do with matplotlib plots that are
launched from the notebook.  

To try to recreate the matplotlib functionality, I've dug through the
matplotlib src to see how they do it when using a QT backend but I can't
seem to recreate their non-blocking functionality. It seems the basic
matplotlib pattern is to create a QApplication instance, create a
QMainWindow, add a central widget to it, show the main window and run exec_
on the qApp.  However when I implement this pattern it creates a blocking QT
window that won't return control back to the notebook until the window is
closed.  Clearly I'm missing something in how matplotlib is able to create a
non-blocking window.

Does anyone have some insight into how I might achieve a non-blocking QT
window from the notebook?  Or can tell me how matplotlib is able to do this?

Thank you in advance,

Jack

--
View this message in context: http://python.6.x6.nabble.com/IPython-User-Non-blocking-QT-window-from-the-notebook-tp5076285.html
Sent from the IPython - User mailing list archive at Nabble.com.
Gabriele Lanaro | 31 Oct 00:31 2014
Picon

Custom communication with IPython notebook widgets

Hi! I'm trying to develop a complex widget (a molecular viewer) that is able to display multiple representations of the same chemical system.

I am aware of the traitlets system and how it works but I was wondering if it's possible to develop an API of this kind:

mv = MolecularViewer() # that's a DOMWidget
mv.call_method("addSurface", params)
# That would trigger a method in the corresponding javascript code
#
#  MolecularViewer = IPython.DOMWidget.extend{
#  ...
#  addSurface = function(params) {
#      ....
#         } 
#  }

I've seen there is a "send" method of the IPython.Widget class https://github.com/ipython/ipython/blob/master/IPython/html/widgets/widget.py#L254 that looks like it may be related to sending those custom messages to the JS side, but I fail to understand how this works.

Thank you very much,

Gabriele
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Jeffrey Spencer | 30 Oct 12:51 2014
Picon

Ipython Menu doesn't disappear with shortcut Ctrl+Shift+M in Ubuntu 14.10

I am trying to get the ipython menu to disappear using Ctrl+Shift+m. I used to have no issues with this in previous versions so I could use emacs bindings alt+f to move forward a word. Is it possible to remove the menu like before or I feel it maybe due to the new way ubuntu does menus that it can not be done.

If that is the case is there anyway to remove the keybinding alt+f for activating the menu or just removing the menu before startup so it just doesn't show all the time because I rarely use it.
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Fernando Perez | 28 Oct 01:49 2014
Picon

IPython/Jupyter governance model

Hi all,

for the past couple of weeks, the core devs have been working on trying to formalize what up until now have been our informally maintained governance practices.  The idea is simply that clarifying and making explicit many of these informal practices will make our community healthier as it grows, and easier for newcomers and external agents to engage with, participate in, and become productive members of.

We tried to do the minimal amount of private editing just to make sure that the core devs were comfortable with the language, but the current document should be considered a draft fully open to feedback and discussion from the broader community. It currently lives at:


We'd like to hear any feedback any of you might have.

I'd also like to thank the members of the core team who provided thoughtful, considered and meaningful feedback as we worked on this initial draft together.

All the best,

Fernando, on behalf of the core dev team.

--
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
http://mail.scipy.org/mailman/listinfo/ipython-user
Gabriele Lanaro | 24 Oct 01:49 2014
Picon

IPython notebook custom widgets fastest way to send a numpy array to javascript

Hi!

I'm trying to use IPython traitlets system to send a NumPy array towards the JS side in an IPython notebook widget (it's a molecular viewer). The array I'm trying to send can be pretty big (like of shape (100000, 3)) as it's an array of 3d coordinates.

What I'm doing right now is:

setup a traitlet like:

class MolecularViewer:
    coordinates = Dict(sync=True)

Then I send the array as a base64 string and type info:

molecular_viewer.coordinates = {'type': dtype,
                                                     'shape', shape,
                                                     'data' : "b64stringrepresentation"}

and I decode back in JS to obtain a TypedArray. Unfortunately the decoding has become a bottleneck (it has to run at interactive speeds possibly).

Do you know a better way to pass large NumPy arrays to javascript (getting a TypedArray on the other side)?

Thank you,

Gabriele
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
klo uo | 23 Oct 21:32 2014
Picon

Start script while starting qtconsole

Hi,

In terminal I can run:

    ipython -i <path-to-my-script>

and everything is as expected - script is executed, namespace populated, waiting my input.

For qtconsole same command errors. I can't find any other way to launch script on qtconsole start except with PYTHONSTARTUP variable. Ok, I've set it, but still not as expected:

After manipulating `sys.path` script ends with lines like this:

...
from anybox.recipe.proj.runtime.session import Session
session = Session(...)

After starting qtconsole I have `Session` object, but not `session` that instantiates it.

Does anyone know why, or is there some more sane way to load a script on qtconsole start without setting environment variables?

_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
gary.church1 | 19 Oct 04:15 2014
Picon
Picon

tk: (9)


http://garridomarketing.com.br/6a7d8j9hg0w1t2u3o4b5x.php

Myranda Dettmer
Mark Andrews | 16 Oct 21:59 2014
Picon

start ipython notebook with a particular (not default) firefox profile

(Note: this is an exact copy of a unanswered question I asked on stackoverflow about 1 month ago).

When I launch ipython notebook, I want it to launch firefox but using a particular firefox profile, which is not my default firefox profile.

In my ipython profile, I have

c.NotebookApp.browser = u'/usr/bin/firefox'

and that makes sure that ipython notebook chooses firefox. However, it chooses the default firefox profile, or else the most recently used firefox profile.

From my linux terminal, I can launch my preferred ipython specific firefox profile (named ipython) like this

firefox -P --no-remote ipython

However, doing

c.NotebookApp.browser = u'/usr/bin/firefox -P --no-remote ipython'

does not work at all (ipython doesn't open firefox at all, and skips to the another browswer'), nor does starting ipython notebook like so

ipython notebook --browser 'firefox -P --no-remote ipython'

which leads to and OSError exception.

Does anyone know of a way to launch firefox with the preferred profile?

thanks

Mark Andrews

_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Brian Blais | 11 Oct 01:18 2014
Picon

proper animation in notebook?

Hello,

I have just found out how to do animations within an ipython notebook,
by looking at:
http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Notebook/Animations%20Using%20clear_output.ipynb

However, when I do it myself I get the animation, but I get a memory
leak - the memory of the python process just keeps growing.  Here's my
code:

%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt

import sys
import time
from IPython.display import display, clear_output

x=linspace(0,6,100)
for t in linspace(0,20,100):
    clear_output(wait=True)
    f=figure(figsize=(10,10))
    plot(sin(x)*sin(t),'-o')
    gca().set_ylim([-1,1])
    display(f)
    close()

somehow I think it isn't actually deleting the figures from one call
to another, so it is building up in the background, although I am not
sure.  Is there a proper way to do this kind of animation in the
notebook without the memory continually increasing?

thanks!

Brian Blais

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

             bblais <at> gmail.com
             http://web.bryant.edu/~bblais

Gmane