PEP 0370 Accepted

As mentioned in a post on py-dev, PEP 0370 has been accepted!

This is pretty great! Speaking as someone who is now in the process of preparing for distribution a Python package that’ll mainly be run by people without root access, this will significantly ease the process of installation. Previously setting PYTHONPATH or installing a local python install were the best methods of getting my package found. But now, it will be significantly easier.

Hooray!

Tags: code, pep, python, yt

Sphinx Rocks

Okay. I’ll admit it. At first, I was not that into Sphinx. It was developed a while back to provide a nice, easy, attractive framework for writing Python documents. (I blogged about the results of this effort a while ago.)

So the deal is, it’s for hand-writing documentation. This sets it apart from epydoc, which generates API documentation, including object inheritance diagrams and so on and so forth. Sphinx has a much more restricted set of goals — generate documentation, and include lots of cool markup methods for documenting modules and whatnot, but require that most of it is hand-written.

Over the last couple weeks, I’ve been doing a big push toward cleaning up, stabilizing and release my toolkit. And I’ve decided that the main documentation is going to be provided through Sphinx. Frankly, it’s gorgeous, even with the default template. And it’s a dream to work with.

But what really got me going — and what inspired this post — was the inclusion of auto-documenting utilities. It’s not nearly as aggressive as epydoc, because you have to specify the particular modules/classes/methods that you want it to introspect, but it will parse docstrings and generate documentation from this, allowing that documentation full access to the Sphinx ReST directives.

This is awesome. I’ve written an outline of the documentation that I want to include with the 0.3 release, but I’ve got a ways to go before that documentation is all written.

This, combined with the rather dee-eye-ess-kay looking data I got last week (before the supercomputer I do my work on had a series of briefly disabling hiccups) has put me in a pretty good mood.

Tags: documentation, python, Science, sphinx, yt

links for 2008-05-03

Tags: python, yt

Joel Spolsky knocks it out of the park

Architecture Astronatus: for the birds, man. For the birds.

Tags: computing, microsoft, thecloudisalie, web

Happy Birthday, if you’re reading this.

-fin-

Tags: moping, shesnot, stupid

Vim tip of the day

Tired of getting lots of weird unicode digraphs when you are fixing a typo?

:set nodigraph
Tags: code, unicode, vim

New NIN Single Today

They mastered it and released it in under 24 hours. Rumor has it a new full album will be out in two weeks. Pretty catchy!

Download it here.

Tags: music, nin

Caught on Film

I have a tendency to talk to myself.  Today, there is a film crew at the FKB, where I work.  My labmate arrived at the office while I was working on a problem, and we exchanged a brief set of words about it…

Around twenty minutes later, I realized the issue, exclaimed, “Oh!  Now I get it!” and turned around sharply to talk to him.  It was at this point I realized, I was being filmed. I had no idea.  I immediately became uncomfortable and walked away, and the film crew packed up and moved out.

On the one hand, I am sure I looked like an idiot, because anybody yelling “Oh! Now I get it!” on film of course looks staged.  On the other hand, I was using yt on my monitor (specifically, the GUI, Reason) so that is kind of cool.

Tags: gradlife, Science, silliness, yt

Eels

Last night I saw Eels again.  I saw them back in 2005, performing With Strings.  The show started with a screening of the BBC documentary about E’s dad, featuring interviews with people like Max Tegmark.  The show was pretty excellent, as it was just E and The Chet.  The song “My Beloved Monster” is a bit of a cliche by now, but the performance during it was outstanding, with The Chet wailing on the drums during the chorus — everything was just completely over the top.  During “Flyswatter,” in the middle of the drum solo, E and The Chet actually switched places without the song missing a beat.  I highly recommend this show.

Tags: eels, music, Science, yt

Graduation

Talked about Graduation with The Advisor today.  Good talk, very informative, very supportive, which is a vibe I’ve been getting from him very strongly lately.  I’m feeling very centered in my work, writers blockage issues aside.

Incidentally, I am also now a Terminal graduate student, officially as of today.  It’s not as painful as it sounds.

Britton has re-checked out yt from the Trunk, and he’s been reporting bugs which I have been fixing.  I still intend to rewrite the GUI component with the Enthought tools — since ultimately it will be far, far more robust that way, as well as easier to maintain — but it’s good that he’s identified some bugs that are now fixed, so it is again functional.  It’ll be my ‘coffee shop’ project for a week or so, cleaning up some rough edges in the spare couple minutes I can find during the evenings.

Tags: gradlife, python, Science, yt

Next Page »