These are chat archives for ipython/ipython

9th
Mar 2015
Kester Tong
@KesterTong
Mar 09 2015 02:00
@minrk Thanks a lot. @takluyver +1
Matthias Bussonnier
@Carreau
Mar 09 2015 04:29
Sorry to hear that @KesterTong Hope to meet you in person later.
Brian E. Granger
@ellisonbg
Mar 09 2015 05:31
@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
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
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
@ssanderson can you give an example? I don't think the newline behavior has changed.
Scott Sanderson
@ssanderson
Mar 09 2015 16:03
@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
That's not normal. Custom ContentsManager?
Scott Sanderson
@ssanderson
Mar 09 2015 16:11
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
hm, maybe we are doing something different, there.
Scott Sanderson
@ssanderson
Mar 09 2015 16:14
might the nbconvert endpoint there just be returning json.dumps() of the input content?
Min RK
@minrk
Mar 09 2015 16:29
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
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
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
@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
@minrk gotcha, makes sense
it might be worth still using CM.get for validation benefits?
Min RK
@minrk
Mar 09 2015 16:38
Not for /files/
#8005
Scott Sanderson
@ssanderson
Mar 09 2015 17:12
issue/PR 9001 had better be a good one...
Kester Tong
@KesterTong
Mar 09 2015 17:13
Hi, I'm ready to start videochat whenever you start
Min RK
@minrk
Mar 09 2015 17:16
@KesterTong great, just getting set up
Kester Tong
@KesterTong
Mar 09 2015 17:16
cool
Min RK
@minrk
Mar 09 2015 17:27
@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
I'll wait until the realtime stuff, thanks for checking
Min RK
@minrk
Mar 09 2015 17:29
okay, that'll be after lunch. We'll keep you updated.
Kester Tong
@KesterTong
Mar 09 2015 17:29
Thanks. Approx what time will you start on the realtime stuff?
Min RK
@minrk
Mar 09 2015 17:29
Probably 1-2
Kester Tong
@KesterTong
Mar 09 2015 17:33
ok I'll log back on here at 1 to be ready
Thomas Kluyver
@takluyver
Mar 09 2015 17:44
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
@KesterTong More around 2pm, I guess, Lunch with Bloomberg will probably be 1 to 2.
Kester Tong
@KesterTong
Mar 09 2015 18:54
@Carreau thanks for the update
Matthias Bussonnier
@Carreau
Mar 09 2015 18:57
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
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
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
Great thanks. Having RT conversation in a few minutes. Want to video chat?
Kester Tong
@KesterTong
Mar 09 2015 21:14
I'm ready for video chat now, @bollwyvl please join us if you can.
Min RK
@minrk
Mar 09 2015 21:14
@KesterTong just getting back from lunch, getting ready to talk about the realtime stuff.
Matthias Bussonnier
@Carreau
Mar 09 2015 21:22
One of the problem I had with codemirror setValue is that it drop cursor positions.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:25
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
We'll send you the link.
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:32
thx
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:33
gah, requires g+
Matthias Bussonnier
@Carreau
Mar 09 2015 21:33
:-(
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:33
thought that had been relaxed
sorry, not selling out today :P
Matthias Bussonnier
@Carreau
Mar 09 2015 21:33
create a dummy account ?
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:34
gah
Matthias Bussonnier
@Carreau
Mar 09 2015 21:35
Is it working ?
Nicholas Bollweg
@bollwyvl
Mar 09 2015 21:37
i'm sure i violated some terms of service
Matthias Bussonnier
@Carreau
Mar 09 2015 21:38
:-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
i have to head out...
Min RK
@minrk
Mar 09 2015 22:45
ok, thanks for stopping by!
Nicholas Bollweg
@bollwyvl
Mar 09 2015 22:46
:)
Matthias Bussonnier
@Carreau
Mar 09 2015 22:46
Nice to see you !