Live data from Hacker News

'New' Python modules of 2015

blog.rtwilson.com

21–30 of 137 posts

Re: 'New' Python modules of 2015

#21

Interesting list. I love Anaconda! A few years ago I tried to set up a Mac with a scientific computing stack and it took me days to hack my way through all the various dependencies and incompatible versions. Anaconda now lets me do that in a minutes.

[deleted]

Re: 'New' Python modules of 2015

#22
We've transitioned our local/dev/prod instances to use conda on Heroku, and couldn't be happier. It was a tiny bit of work to get it set up, but now everything is consistent, and we can set up new local environments in seconds.

Re: 'New' Python modules of 2015

#23
post #18
post #10

Earlier quoted context omitted.

Me too...I taught a python class by making everyone download Anaconda's distribution of 3.x...and everyone could do the assignments no matter what kind of computer they used. Anaconda does a little too much for me to have it be my own default install but it does quite well in on boarding beginners. I use pyenv to install maintain Anaconda on my own machine when I need to replicate student work

What does it do that ends up being a little too much for your use?

It takes precedence in the path over everything...and in the last version I used (before I upgraded to OS X El Capitain and wiped out everything), things like `curl` were provided [1] ...which I completely understand for Anaconda's use case, but it caused a lot of confusing grief to me when I hadn't expected that and OpenSSL was having its rough times.

I don't know if that's the case (curl being part of the package) now, with Anaconda 3 2.4.0+? It certainly isn't so when installed via pyenv, so I'm happy with that. But there were other issues in the past build...BeautifulSoup was inexplicably broken. I mean that it simply did not correctly parse non-trivial HTML pages and yet threw no errors. The results could be replicated for all of my students but I never could isolate the issue... I installed Python 3 and the same version of BS4 from scratch and had no problems, but I can't imagine where the Anaconda build would have gotten wrong. It ended up being OK since I just switched to lxml which I now happily use over BS4 on any day, but it was frustrating to not be able to diagnose the problem (I didn't get a response in the support forums either). I'm assuming this problem has gone away in subsequent versions of Anaconda though I haven't tried since lxml is perfectly fine to me.

And finally...well, I have to admit it, but I use Python like a goddamned moron in that I still don't know how to use virutalenv/venv to do proper dev isolation. And from the brief research I did, I see that Anaconda has its own conventions, or work flow...something with the conda utility. Again, I can see why it's necessary for Anaconda's use case (people who want to do data science and not hand-tweak their environment every time they upgrade a package over pip), but it added too many layers for me at the time.

[1] https://groups.google.com/a/continuum.io/forum/#!topic/anaco...

Re: 'New' Python modules of 2015

#24
post #17

Earlier quoted context omitted.

Could you name it?

This is probably what he meant: $ py Python 2.7.8 |Anaconda 2.1.0 (64-bit) ... on win32 >>> import bsddb >>> print bsddb.__doc__ Support for Berkeley DB 4.3 through 5.3 with a simple interface. For the full featured object oriented interface use the bsddb.db module instead. It mirrors the Oracle Berkeley DB C API.

Ahhh... Thanks, never knew that!

Re: 'New' Python modules of 2015

#25
post #13

The Python module I learned to love this year is Click. Gets me better command line interfaces fast. URL is http://click.pocoo.org . It does progress bars too...

Wow, thanks for this...I was literally in the middle of writing a CLI tool to fetch a URL and parse out metadata and was getting a little tired of the argparse route. I browsed the documentation and honestly can't say that I immediately grok the advantages but given who its author is, I'm more than happy to switch libraries in mid-coding :)

Re: 'New' Python modules of 2015

#26
I'm feeling a lot of love for Pandas. Any (biology related) project I work on starts with multi-headered dataframes and ends in beautiful Seaborn graphs. In combination with Jupyter notebook I breeze through large data sets while leaving a perfect trail of what goes on in the data pipeline. Python is great.

Re: 'New' Python modules of 2015

#28
post #17

Earlier quoted context omitted.

Could you name it?

This is probably what he meant: $ py Python 2.7.8 |Anaconda 2.1.0 (64-bit) ... on win32 >>> import bsddb >>> print bsddb.__doc__ Support for Berkeley DB 4.3 through 5.3 with a simple interface. For the full featured object oriented interface use the bsddb.db module instead. It mirrors the Oracle Berkeley DB C API.

bsddb is deprecated as of python 2.6 and removed in python 3
Post reply on HN