News for hackers. Stuff that matters.
Re:A gallery of interesting IPython Notebooks by collyw on Monday May 05, 2014 @05:24PM (#7701364)
I saw a talk about IPython notebook the other day. How do you guys view it? As an IDE with an output format? Or a web browser with interactive interpreter?

It seemed sort of cool, but I am not quite sure where to place it. The guy doing the talk didn't sound very experienced, and I think the majority of his plus points for using it I get from an IDE. I would do the same thing using a full blown web app, but that would take a lot longer.

Curious how others view it.

Re:A gallery of interesting IPython Notebooks by penguindev on Monday May 05, 2014 @08:42PM (#7702246)
I've used it recently as excel on steroids. As in, you have a lot of data and you want to make a 20 page .pdf report with lots of charts and nice page breaks.

I did this by editing a python script in vim that did everything, and just %load it in ipython every time I changed it (only a few keystrokes - not instant but ok), but ipython's magic is putting all the matplotlib charts in a nice html package (you can also mix markdown/text/html), that I can then run nbconvert to html & print to pdf (with only a few hacks / frustration).

Re:A gallery of interesting IPython Notebooks by sitkack on Monday May 05, 2014 @09:36PM (#7702417)
Please blog about this.
Re:A gallery of interesting IPython Notebooks by nikhilalmeida on Monday May 05, 2014 @10:16PM (#7702526)
+1
Re:A gallery of interesting IPython Notebooks by HCIdivision17 on Monday May 05, 2014 @06:06PM (#7701596)
I like to think of it as an engineering hack pad. Use it to prototype and interate over scripts like you would with the CLI version of IPython, but with a GUI instead. I had an immense amount of fun learning OpenCV with it, shunting data to my phone over Tornado, and building interfaces to various data systems (each thing I knew nothing about from the start, but could explore). It can do all the stuff Python does, but with quite a lot of cleverness built into it.

I suppose it's really an IDE, but I certainly don't use it as one. It really lends itself to being a solid, robust, napkin programming interface. Alternately: it's the turn-based tactics to LightTable's realtime strategy.

Re:A gallery of interesting IPython Notebooks by RogerL on Monday May 05, 2014 @07:22PM (#7701926)
I'm using it to write a book right now.

It is a mixed bag, largely because it is still in development. It is wonderful for authoring content - I can freely mix latex, code, output all together - you don't have to wonder how I generated that plot, the code and data is right there. OTOH, no section numbers, not quite WYSISYG, no way to hide code if you only want the output, and other minor things make me wonder if I should just use the tried and true latex workflow.

If I am just programming I prefer an IDE like spyder (I do mostly math-y type stuff).

A big annoyance is it's interaction with git. If you regenerate the output, git interprets that as a big file change, and the repository gets polluted with nonsense commits. There are workarounds, but none are perfect.

In general it is really great where you want to mix text, images, html, and python. So, great for presentations {audience: 'what if you change X==3', you: 'here you go'}, for paper writing, maybe less than great for full on book authorship or general programming.

But these are nitpicks. I love IPython Notebook. Even if I end up in the traditional Latex workflow at the end, it is so easy to keep code, text, and output all synced up with the notebook compared to the alternatives.

You can also run more than Python in it. IJulia supports running Julia in the notebook, for example.

Re:A gallery of interesting IPython Notebooks by alecdbrooks on Monday May 05, 2014 @11:40PM (#7702720)
>A big annoyance is it's interaction with git. If you regenerate the output, git interprets that as a big file change, and the repository gets polluted with nonsense commits. There are workarounds, but none are perfect.

This is probably one of the workarounds you're thinking of, but I clear the output and use a precommit hook to make sure I haven't missed any cells. It's a bit annoying, but it works. I'm waiting for the day VCS integration is built-in. For now, I enjoy having my notes and code together and versioned.

Re:A gallery of interesting IPython Notebooks by RogerL on Tuesday May 06, 2014 @10:20AM (#7704588)
I should have said "a tiny annoyance", not "a big annoyance". The fix is, of course, to clear output.
Re:A gallery of interesting IPython Notebooks by sitkack on Monday May 05, 2014 @09:35PM (#7702415)
And Haskell.

It would be nice to open a port on IPython and send code from the IDE to it for execution and visualization.

Re:A gallery of interesting IPython Notebooks by rm445 on Monday May 05, 2014 @08:51PM (#7702278)
More like an interactive calculation and graphing environment. 90% of the time, for me, the key output is a set of graphs. I like the consistency of plotting them programmatically in (matplotlib) code, while the interactive cell-based format makes it quick to run and make changes.

Sure, it isn't too different to using an IDE, but the UI owes more to mathematical environments such as Maple and Mathematica.

Re:A gallery of interesting IPython Notebooks by kastnerkyle on Monday May 05, 2014 @10:06PM (#7702510)
I use it primarily as a prototyping and blogging platform. With a little tweaking, Pelican can convert IPython to static HTML. It makes a really great way to create and share blog content, especially because I am basically looking at the final product while writing. Hosting with Github is also a breeze, and gives me automatic version control for all content. Anyone interested can check it out here [1]

It is also has a built-in presentation display - can be very handy for sharing your analysis/code with other folks.

IPython is definitely not an IDE for me - I usually prototype my code as a gist, then either import or copy depending on what type of code I am writing. Working purely in IPython tends to lead me toward spaghetti code, but being more disciplined would probably make it work well.

[1] http://kastnerkyle.github.io/

Re:A gallery of interesting IPython Notebooks by jamesjporter on Tuesday May 06, 2014 @11:52AM (#7705199)
It's basically an attempt to bring the user interface of Mathematica or MATLAB (the "notebook") to the Python world. You can get an idea of what this is like in Mathematic by watching Wolfram's demo: https://www.youtube.com/watch?v=_P9HqHVPeik
Re:A gallery of interesting IPython Notebooks by sitkack on Monday May 05, 2014 @09:34PM (#7702412)
Literate code with inline graphical output. Kinda like Logo for scientists.