Live data from Hacker News

IPython gets $1.15M funding

mail.scipy.org

91–95 of 95 posts

Re: IPython gets $1.15M funding

#91
post #84
post #20

Earlier quoted context omitted.

Most of my programming these days is actually done in IPython notebook. Having an instant feedback is invaluable. I put my code in plain old .py files only once it needs to be imported. I'm even wondering: if there was a way for notebooks to import each other, would I still bother with modules?

You can import notebooks in other notebooks if you turn on the option to autosave your ipynb files as .py files too. 1. In ipython_notebook_config.py, set the following: # Save .py for each notebook for import elsewhere c.NotebookManager.save_script = True 2. Restart your notebook server. 3. Save any notebooks you'd like to import under module friendly names. (They wind up in the same dir as the ipynb files.) 4. In y…

We don't really envisage the notebook as a tool for creating modules and packages. It's not a replacement for a traditional editor or IDE; indeed you could use it alongside one.

We might even pair it with a web-based editor, like ACE, so you can comfortably write modules on the same server.

Re: IPython gets $1.15M funding

#92
post #82
post #56

I was lucky enough to find IPython early on when I started with Python. I'm constantly amazed with its feature set. Some cool things I found useful: The "run" command for running python scripts: * -t to print timing information * -p to print profiling info from profiler module * -d run the script under pdb interactively (with -b to set line breakpoints) * -n to set __name__ All of these things can be done fairly easi…

When I try to set __name__ with -n it says it's a bad flag. This is with the shell command. Is there something special I need to do?

You use it inside IPython, with a command like:

%run -n foo.py

You can't set __name__ to arbitrary values. It's either '__main__' like when running a script, or (with -n) the module name, like when performing an import.

Re: IPython gets $1.15M funding

#93

Earlier quoted context omitted.

There's a great (but somewhat lengthy) video tutorial[1] from Pycon US'12 that covers a lot of IPython and the Notebook. Highly recommended; it's a live demo by the authors of the tools. Seriously, IPython is the coolest thing that happened to Python since Python, and anyone even slightly interested owes it to himself to play with IPython. [1] http://www.youtube.com/watch?v=2G5YTlheCbw

I'm interested in installing EPD, but it seems to want to install in my C:\Python27 directory (I'm on Windows here at work). Will this overwrite or otherwise interrupt my existing Python installation?

Ryan, you should be able to select where it will install itself. It will override your existing python installation if you install it in the same location as your original, so don't do that.

Re: IPython gets $1.15M funding

#94

Earlier quoted context omitted.

I'm interested in installing EPD, but it seems to want to install in my C:\Python27 directory (I'm on Windows here at work). Will this overwrite or otherwise interrupt my existing Python installation?

As far as I can remember - yes, it will try to overwrite your Python dir, at least it did for me on my Windows machine (I backed up my original C:\Python27 before trying EPD, and then had to restore it, IIRC; there was also some mess with paths, but nothing incurable). I also tried installing EPD into its own directory, but Windows EPD package failed to run Notebook anyways (some issues with Tornado), and I was just…

Sorry you got those issues with the notebook, this should not have happened. The notebook is certainly supported on windows in principle, the fact that it does not within EPD for you is a bug, I apologize for that.

With the latest EPD 7.3-2, ipython notebook --pylab inline works for me on windows 7 32 bits + chrome. Feel free to contact me privately (see my HN account) if you want more help on how to get this fixed.

Re: IPython gets $1.15M funding

#95
post #46
post #30

I would be wonderful if we could re-use the notebook interface for other language - Octave, Julia, R, Ruby. (Would also be nice if building ipython on OS X was easier!)

(Would also be nice if building ipython on OS X was easier!) What issue do you face? Genuinely curious, because I use Mountain Lion, and installing IPython for me simply involves doing pip install ipython I installed Python from source though.

Thanks. It mostly worked. Of course, the real benefit of ipython is the notebook. For that you need (on OS X)

    brew install python   # or just download and install from source
    pip install numpy
    pip install matplotlib
    pip install ipython[zmq,qtconsole,notebook,test]
Actually, for qtconsole you need to install Qt and pip install pyside

But the latter failed to build on my machine... (Given that Apple's gcc version is ancient and clang is the default compiler on OS X -- it's a wonder the other tools were built correctly)

Post reply on HN