These are chat archives for ipython/ipython

9th
Mar 2015
Kester Tong
@KesterTong
Mar 09 2015 02:00 UTC
@minrk Thanks a lot. @takluyver +1
Matthias Bussonnier
@Carreau
Mar 09 2015 04:29 UTC
Sorry to hear that @KesterTong Hope to meet you in person later.
Brian E. Granger
@ellisonbg
Mar 09 2015 05:31 UTC
@KesterTong sorry you can't make it. I will be in touch about getting together when I am in NYC
LOL about the telepresence - @rgbkrk said he wanted to use that this week :)
Scott Sanderson
@ssanderson
Mar 09 2015 14:49 UTC
is there a reason the latest nbformat no longer uses newlines?
it makes it significantly harder to read the raw file
and/or is there a way to get the notebook to spit out .ipynb files with human-readable whitespace?
Jonathan Frederic
@jdfreder
Mar 09 2015 15:21 UTC
Meeting goers - I'm heading over to Philz then Yali's for breakfast . Let me know if you want to meet early!
Min RK
@minrk
Mar 09 2015 16:02 UTC
@ssanderson can you give an example? I don't think the newline behavior has changed.
Scott Sanderson
@ssanderson
Mar 09 2015 16:03 UTC
@minrk I just noticed because I was updating some example notebooks for our research environment that had originally been authored in v3
and they were all ~200 lines and formatted in a human-readable manner
whereas the latest ones, which were created on a newer IPython
were all one line
they work perfectly well in both cases, I noticed because the git diff stats were like +1/-237
Min RK
@minrk
Mar 09 2015 16:05 UTC
That's not normal. Custom ContentsManager?
Scott Sanderson
@ssanderson
Mar 09 2015 16:11 UTC
they're using pgcontents, but for anything that touches nbformat I'm using the same stuff that core IPython uses afaik
they were downloaded using the download-as dropdown in the UI
which I think means using nbconvert
would that strip whitespace maybe?
to be clear, is the expected outcome the human-readable one with newlines?
or the 1-liner?
Min RK
@minrk
Mar 09 2015 16:13 UTC
hm, maybe we are doing something different, there.
Scott Sanderson
@ssanderson
Mar 09 2015 16:14 UTC
might the nbconvert endpoint there just be returning json.dumps() of the input content?
Min RK
@minrk
Mar 09 2015 16:29 UTC
It's the new FilesHandler that's doing it. I can fix it today, definitely not an intended change.
And note that since the file format is JSON, indentation and whitespace are not part of the format.
Scott Sanderson
@ssanderson
Mar 09 2015 16:30 UTC
agreed that it's not part of the format, I was just surprised by the difference
it may also well be that that's not actually a behavior change, and my initial set of examples didn't go through the download button the first time
but it still seems nice to provide the more readable/diffable versoin
Carl Cochran
@CarlCochran
Mar 09 2015 16:35 UTC
Hey development team - I asked a question here a few days ago but I don't think anyone saw it; I want to rephrase it. Can anyone point me toward the right way to add a new URL? I tried modeling it after how a URL is defined in /IPython/html/base/handlers.py and creating a simple HTML template that extends page.html, but I am unable to access it while the server is running.
Min RK
@minrk
Mar 09 2015 16:37 UTC
@ssanderson it is a change, because /files/ used to go directly to the filesystem, but now it uses CM.get. It should be using CM.get(type='file') to avoid JSON parsing and reserializing.
Scott Sanderson
@ssanderson
Mar 09 2015 16:37 UTC
@minrk gotcha, makes sense
it might be worth still using CM.get for validation benefits?
Min RK
@minrk
Mar 09 2015 16:38 UTC
Not for /files/
#8005
Scott Sanderson
@ssanderson
Mar 09 2015 17:12 UTC
issue/PR 9001 had better be a good one...
Kester Tong
@KesterTong
Mar 09 2015 17:13 UTC
Hi, I'm ready to start videochat whenever you start
Min RK
@minrk
Mar 09 2015 17:16 UTC
@KesterTong great, just getting set up
Kester Tong
@KesterTong
Mar 09 2015 17:16 UTC
cool
Min RK
@minrk
Mar 09 2015 17:27 UTC
@KesterTong we are starting with nbgrader stuff. Do you want to call in now, or wait until we are doing realtime stuff this afternoon?
Kester Tong
@KesterTong
Mar 09 2015 17:28 UTC
I'll wait until the realtime stuff, thanks for checking
Min RK
@minrk
Mar 09 2015 17:29 UTC
okay, that'll be after lunch. We'll keep you updated.
Kester Tong
@KesterTong
Mar 09 2015 17:29 UTC
Thanks. Approx what time will you start on the realtime stuff?
Min RK
@minrk
Mar 09 2015 17:29 UTC
Probably 1-2
Kester Tong
@KesterTong
Mar 09 2015 17:33 UTC
ok I'll log back on here at 1 to be ready
Thomas Kluyver
@takluyver
Mar 09 2015 17:44 UTC
I think we might be having lunch around 1, so we'll probably be starting the afternoon stuff more like 2.
Matthias Bussonnier
@Carreau
Mar 09 2015 18:00 UTC
@KesterTong More around 2pm, I guess, Lunch with Bloomberg will probably be 1 to 2.
Kester Tong
@KesterTong
Mar 09 2015 18:54 UTC
@Carreau thanks for the update
Matthias Bussonnier
@Carreau
Mar 09 2015 18:57 UTC
No problem.
Trying RT across computer, don't work.
I have RT for editor only working on local host.
But when john connect; we seem not to be on the same RT session;
I have to dig in the docs.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 20:47 UTC
here's a little hack to get mermaid.js diagrams in the notebook:
if the api stabilizes, and it stops breaking requirejs, i'll wrap it up as an nbextension
also @Carreau re: rt editor: i've got a bit of stuff hacked around the original derby codemirror example (based on the original sharejs example). took me a while to get right.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 20:53 UTC
also, as a baseline for the higher-order RT interface, here's a lovely place where the sharejs guys have abstracted out their wire format for plain and rich text and JSON: https://github.com/ottypes
Matthias Bussonnier
@Carreau
Mar 09 2015 21:10 UTC
Great thanks. Having RT conversation in a few minutes. Want to video chat?
Kester Tong
@KesterTong
Mar 09 2015 21:14 UTC
I'm ready for video chat now, @bollwyvl please join us if you can.
Min RK
@minrk
Mar 09 2015 21:14 UTC
@KesterTong just getting back from lunch, getting ready to talk about the realtime stuff.
Matthias Bussonnier
@Carreau
Mar 09 2015 21:22 UTC
One of the problem I had with codemirror setValue is that it drop cursor positions.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:25 UTC
sure, i'm in
how should i join?
yeah, setValue is a bummer.
replaceRange is far more granular
even if you are getting a full value back from your model, you should still be able to do a diff yourself and do the setRange for each piece.
sorry, replaceRange
had the right of it above
Matthias Bussonnier
@Carreau
Mar 09 2015 21:31 UTC
We'll send you the link.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:32 UTC
thx
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:33 UTC
gah, requires g+
Matthias Bussonnier
@Carreau
Mar 09 2015 21:33 UTC
:-(
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:33 UTC
thought that had been relaxed
sorry, not selling out today :P
Matthias Bussonnier
@Carreau
Mar 09 2015 21:33 UTC
create a dummy account ?
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:34 UTC
gah
Matthias Bussonnier
@Carreau
Mar 09 2015 21:35 UTC
Is it working ?
i'm sure i violated some terms of service
Matthias Bussonnier
@Carreau
Mar 09 2015 21:38 UTC
:-P
@bollwyvl FYI peope do not see the screen in which you are. camera is on the wall.
So considere we only have sound.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 22:45 UTC
i have to head out...
Min RK
@minrk
Mar 09 2015 22:45 UTC
ok, thanks for stopping by!
Nicholas Bollweg
@bollwyvl
Mar 09 2015 22:46 UTC
:)
Matthias Bussonnier
@Carreau
Mar 09 2015 22:46 UTC
Nice to see you !