These are chat archives for ipython/ipython

8th
Jan 2015
Min RK
@minrk
Jan 08 2015 00:00
e.g. print('1\n2\n3') vs print(repr('1\n2\n3'))
Hamid Tavakoli
@hamidre13
Jan 08 2015 00:01
hmm print, print it correctly, but with magic function it does print them in one line
Jason Grout
@jasongrout
Jan 08 2015 00:01
@minrk: right, yes. I was thinking that the notebook view was /edit. So we have /notebooks, /edit, and /files...
Min RK
@minrk
Jan 08 2015 00:02
right, /files works for everything, /edit works for anything text (incl notebooks) and /notebooks works only for notebooks
Hamid Tavakoli
@hamidre13
Jan 08 2015 00:11
@minrk So when I read a file and then return the file content it prints them in one line although I make sure they are string, Did I miss any step?
Min RK
@minrk
Jan 08 2015 00:12
There's a difference between print and repr
when you just return something, IPython displays the repr, e.g. Out[5]: '1\n2'
Hamid Tavakoli
@hamidre13
Jan 08 2015 00:12
I see
Min RK
@minrk
Jan 08 2015 00:13
If you want to print the string, you have to call the print function:
s = '1\n2'
print(s)
Hamid Tavakoli
@hamidre13
Jan 08 2015 00:13
How can I disable it, or tell ipython to print it, instead of repr?
Min RK
@minrk
Jan 08 2015 00:13
You can call the print function
Hamid Tavakoli
@hamidre13
Jan 08 2015 00:13
ok
awesome, Thanks
Jonathan Frederic
@jdfreder
Jan 08 2015 17:58
@/all video meeting today?
Min RK
@minrk
Jan 08 2015 17:59
I'm around if you have something to chat about. We've apparently switched Tuesday/Thursday for general / special starting this week.
Jonathan Frederic
@jdfreder
Jan 08 2015 17:59
ohhhh
ok
I think I was in a plane Tuesday
Min RK
@minrk
Jan 08 2015 17:59
But if you have something, we can go for it.
We didn't have a meeting Tuesday, Brian pinged the list.
Jonathan Frederic
@jdfreder
Jan 08 2015 17:59
ahh
ok
thanks
Min RK
@minrk
Jan 08 2015 17:59
So the first proper dev meeting of 2015 will be next Tuesday
Jonathan Frederic
@jdfreder
Jan 08 2015 18:00
got it
I think I will be in a plane again :/
Min RK
@minrk
Jan 08 2015 18:00
but if you have something that you are blocking on, or want to chat about, we can go for it
Jonathan Frederic
@jdfreder
Jan 08 2015 18:00
lol
no, thanks min!
Jason Grout
@jasongrout
Jan 08 2015 18:02
@jdfreder: we're seeing something weird when documenting widgets:
from IPython.html.widgets import *
x = DOMWidget()
x.i
says that x.i is 8. What is i?
uh, I mean, what does i mean?
ah, I see it.
It's a python 2 thing, I think.
Jason Grout
@jasongrout
Jan 08 2015 18:11
What do you think about trimming down the options available to just the normal, bold, bolder, etc.?
and while we're at it, what do you think of deleting the border_radius property? I think border_radius is way more advanced than the other basic attributes provided.
Min RK
@minrk
Jan 08 2015 18:13
(I'm always +1 to trimming)
Jason Grout
@jasongrout
Jan 08 2015 18:27
well, this doesn't end up trimming, but it does get rid of the unintended class attribute: ipython/ipython#7397
Anthony Louis Burns, Esq.
@anthonylouisburns
Jan 08 2015 19:17
I have been working on a project for developing static websites using nbconvert - here is what I came up with http://www.anthonylouisburns.com/icontent/IContent.html and here is the github https://github.com/anthonylouisburns/icontent I would love any feedback anyone has - anthonylouisburns@gmail.com
Kyle Kelley
@rgbkrk
Jan 08 2015 19:43
Nice, look forward to diving into the repo later
well
epifanio
@epifanio
Jan 08 2015 23:51
hi, i’m having request on converting/generating publication quality pdf from an ipython notebook (were the language used can be python, bash, R. octave) for publication quality i mean : use a latex template provided by a publisher (let’s say elsevier or other) and use the template as base that can be filled parsing a notebook.
the approach i want try to use is the same already in use for the slideshow converter
e.g. have a drop down menu for the cell metadata “say: latex-double-col” and then for each cell use the tag : \section \subsection (to start)
he build a notebook parser that will check each cell .. for the \section \subsection it is supposed to use markdown cells, while when a code cell is encountered .. the output-cell is appended to the section above with the addition of a footnote that point to a code listing (latex feature) that is appended at the end of the document as appendix
epifanio
@epifanio
Jan 08 2015 23:57
.. sorry to bore you with all this text .. my question .. : where should I start to work in the ipython src code to modify the cell toolbar metadata ?
my dumm approach is to duplicate the slideshow code and slowly modify it for my needs. in the maintime i’m using the slideshow tags .. that to prototype the parser is enough