These are chat archives for ipython/ipython

7th
Nov 2014
Jonathan Frederic
@jdfreder
Nov 07 2014 01:01
@takluyver did you find anything
I've been playing around with it the past couple of minutes
and I think what you're doing is the only way
Thomas Kluyver
@takluyver
Nov 07 2014 01:02
that was my thinking as well
the only methods on a promise that looked specific to it are then and catch
Jonathan Frederic
@jdfreder
Nov 07 2014 01:03
i.e.
var x;
p = new Promise(function(resolve, reject){ x = resolve; });
Thomas Kluyver
@takluyver
Nov 07 2014 01:03
yep
Jonathan Frederic
@jdfreder
Nov 07 2014 01:11
I don't think you need to do it that way
I'll post comment(s) in the diff you linked
Actually I think it would be better to just communicate with code
I'll open a PR against your branch
and you can see if you like it more
Jonathan Frederic
@jdfreder
Nov 07 2014 01:25
ahhh
@takluyver
I was wrong
BUT
I was wrong on the first statement too
looks like Promises DO support what you want
d = Promise.defer()
d.promise.then(function() {console.log('hello');});
d.resolve()
hello
Thomas Kluyver
@takluyver
Nov 07 2014 01:33
TypeError: Promise.defer is not a function
Is that an RSVP thing, perhaps?
Jonathan Frederic
@jdfreder
Nov 07 2014 01:34
I don't think so
I was on that page when I was using the console.
I'll check on a neutral page, like jsfiddle
One of two things, your browser doesn't implement full ES6, or defer() is not in ES6
Thomas Kluyver
@takluyver
Nov 07 2014 01:36
it's a difference between Firefox and Chrome
Jonathan Frederic
@jdfreder
Nov 07 2014 01:36
got to run, otherwise I'd check ES6 for you
Thomas Kluyver
@takluyver
Nov 07 2014 01:36
ok
Jonathan Frederic
@jdfreder
Nov 07 2014 01:36
but you may want to look and see if our polyfill has it
Thomas Kluyver
@takluyver
Nov 07 2014 01:36
I'll check it myself
Jonathan Frederic
@jdfreder
Nov 07 2014 01:37
k ttyl
Thomas Kluyver
@takluyver
Nov 07 2014 01:37
byte!
bye, even
Thomas Kluyver
@takluyver
Nov 07 2014 01:42
The polyfill does not have defer, so it is a Chrome-specific thing
Kyle Kelley
@rgbkrk
Nov 07 2014 02:15
My profile is blank/fresh yet everytime I launch the notebook it says its doing it on all interfaces...
Can something else be setting that
oh crap
I know what it is
If you have an ipython_notebook_config.py in the directory you're currently in, it will use that
I'm sitting in the nature-demo directory which does have those settings
ha
Kyle Kelley
@rgbkrk
Nov 07 2014 02:23
omg, I just ran an IPython cell using Internet Explorer
is this magic?
Thomas Kluyver
@takluyver
Nov 07 2014 02:27
;-)
I've seen people using it with IE10
Dale Jung
@dalejung
Nov 07 2014 04:39
Anyone running codemirror with vim against master?
Scott Sanderson
@ssanderson
Nov 07 2014 05:57
It looks like you guys got added to one of the automated cryptocurrency tipping sites that have been popping up recently.
I just got an email like this:

Hello, Scott Sanderson!

You were tipped 0.61 XPM for your commit on Project ipython/ipython. Please, log in and tell us your primecoin address to get it.

Your current balance is 0.61 XPM. If you don't enter a primecoin address your tips will be returned to the project in 30 days.

I figured I'd ping the list here in case you weren't aware.
Dale Jung
@dalejung
Nov 07 2014 16:39
@ssanderson I just got a notice for a commit to CodeMirror. fun fun. What the hell is an XPM anyways?
Jason Grout
@jasongrout
Nov 07 2014 17:05
@ssanderson - I can imagine there are at least some fraudulent sites out there that promise you some money to get you to enter info. I've never heard of primecoin.
(but apparently wikipedia has...)
Jason Grout
@jasongrout
Nov 07 2014 17:17
@takluyver , @jdfreder: you can do something similar to Chrome's Promise.defer using just es6 promises: http://stackoverflow.com/questions/21652948/javascript-promise-defer-in-chrome
(it's not quite the same, because the promise is a separate object, but it is similar
Thomas Kluyver
@takluyver
Nov 07 2014 17:24
@jasongrout , yep, that's pretty much what I'm doing.
Jason Grout
@jasongrout
Nov 07 2014 17:26
in that it is exposing the resolve and reject functions outside of the promise
Thomas Kluyver
@takluyver
Nov 07 2014 17:27
exactly
I was just wondering if there was a neat way to do it, but we seem to have established that there isn't.
Jason Grout
@jasongrout
Nov 07 2014 17:28
oh, actually I guess that stackoverflow post exactly mimics the Chrome Promise.defer() function
Thomas Kluyver
@takluyver
Nov 07 2014 18:05
@/all I've split out the list of kernels on the wiki into its own page, to give it greater visibility: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
if you know of any links to it in the old location, please update them
Jason Grout
@jasongrout
Nov 07 2014 18:40
links to what?
Thomas Kluyver
@takluyver
Nov 07 2014 18:41
Did the message before that not get delivered?
Jason Grout
@jasongrout
Nov 07 2014 18:41
it didn't.
Thomas Kluyver
@takluyver
Nov 07 2014 18:41
It said: @/all I've split out the list of kernels on the wiki into its own page, to give it greater visibility: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
Jason Grout
@jasongrout
Nov 07 2014 18:41
weird. I got the line "if you know of any links to it in the old location, please update them"
but the line "@/all I've split out the list of kernels on the wiki into its own page, to give it greater visibility: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages" didn't appear until I refreshed the page
Thomas Kluyver
@takluyver
Nov 07 2014 18:42
I guess gitter still has some bugs to iron out
Jason Grout
@jasongrout
Nov 07 2014 18:42
yep
Scott Sanderson
@ssanderson
Nov 07 2014 18:49
@dalejung @jasongrout they're not fraudulent as far as I can tell; they ostensibly provide a service that lets people donate cryptocurrency to projects and have that currency given to commiters when patches are merged, but they've gotten a lot of flak recently because they sign up projects without their consent and don't help people deal with the tax implications of accepting donations; there was a big hackernews thread about this a while back because Armin Ronancher had requested to be unlisted and they didn't have the ability to do so
Thomas Kluyver
@takluyver
Nov 07 2014 18:51
oh yes, I got one of those recently. This one at least let the user unsubscribe from their emails. I should go and see if we can remove the project from it entirely.
it appears we can't
commits to IPython are currently valued at about 10c
which is more than I would have expected, but still, even Min couldn't live on that ;-)
Thomas Kluyver
@takluyver
Nov 07 2014 18:56
('even Min' as in, Min makes the most commits, not has the lowest living costs. Just realised that could be misinterpreted)
Jason Grout
@jasongrout
Nov 07 2014 19:03
IPython has about 18,000 commits, so a valuation of around $1,800. That's on par with something like Mathematica
(of course, Mathematica has a lot more than IPython itself...)
Thomas Kluyver
@takluyver
Nov 07 2014 19:07
I don't think that comparison works
$1800 might be comparable to the price of one copy of Mathematica, not to the value of it in general.
I think it's clear that the value of IPython is much higher. Openhub's statistical model estimates > $1.4M
but only some tiny fraction of our users are likely to have signed up to such 'tipping' sites, so we wouldn't expect it to represent the genuine value of IPython.
Jason Grout
@jasongrout
Nov 07 2014 19:34
right; I was talking about a price per copy, as if people would buy it.
presumably 10c per commit is too low, but if each user was paying it, it would be quite a lot
Thomas Kluyver
@takluyver
Nov 07 2014 19:35
10c per commit is the total it gives out. I don't know how many people have contributed.
Dale Jung
@dalejung
Nov 07 2014 20:27
the notice I got was for a one line codemirror change. A good LOC ROI
Jason Grout
@jasongrout
Nov 07 2014 20:45
ah. I thought it was 10c per person that wanted to donate. Yes, that indeed does change the picture by quite a lot
@jdfreder: how is promises coming along
?