On Jobs: Networking

Much of what Haseeb Qureshi describes is rock solid advice no matter what field you are interested in. I was especially taken with his reminder about the importance of networking, of finding people in industries, companies, or jobs you are interested in and simply buying them a cup of coffee and asking them questions, lots of questions, and listening. I want to give this same advice to all my students, but that makes me wonder: is networking useful for graduate students? At the very least, it would give them a wider introduction into the field. I learned a lot from my teachers, but I learned just as much from Lee Haring, Erika Brady, John Michael Vlach, and others whom I only met at the annuals meetings of the American Folklore Society and who were always very kind.

Now that I think about it, I first met Barry Ancelet when I asked to have coffee with him at the annual meeting in Jacksonville in, I think, 1992: that turned out to be six years before I applied for a job here at UL-Lafayette. At the very least, during a moment when I wondered what course I might chart for myself, meeting Barry as well as hanging out later with the likes of Janet Langlois or getting a chance to trail after John Dorst and Michael Ann Williams, informed my understanding of what it meant to be a folklorist as much as an class in folklore studies ever did. In particular, it opened up possibilities I never dreamed of during my coursework: it made the field feel more open, more prone to conversation than argumentation.

Later, trading notes on both topical and professional matters with Patricia Sawin and Jill Rudy made me realize that the personal mattered, that the coffees and meals were meaningful ways of being engaged and of advancing one’s own thinking.

So, yes, networking matters, both in the short-term of getting something you want but also in the long-term of being the thing itself that you want.

Re-Installing Python

With any luck, the title of this post should be (will be) “Re-installing Python the Right Way.” The reason for this post is that while trying to install the, albeit experimental, iPython module that allows you to save iPython/Jupyter notebooks in a markdown format and not JSON, I was running into difficulties that seemed to be a function of the way MacPorts installs Jupyter, which was not allowing me to run jupyter from the command line. I.e., the only way I could get a Jupyter notebook was by using the deprecated ipython notebook.

I read around a bit, and it seems the preferred way to handle this is to use something like MacPorts, or Homebrew, for the base installation of Python and Pip and then to do everything from within pip.

Side note: since I plan on installing most of the packages into only my user space, and I am lazy and don’t want to type pip install --user every time, I made an alias and saved it in my `.bash_profile:

alias pinstall='pip install --user'

I used vi but use whatever editor lets you access that hidden file and do what needs to get done. Once I was done, I executed the file so its settings were current:

. ~/.bash_profile

(Note the space between the dot and the tilde.)

Having done this, I set about re-loading all the usual modules on which I depend numpy, scipy, etc. (I have a fuller list.) I was surprised by how quickly this process went, and I routinely checked to see how things were going by opening either a Python or iPython shell and importing a recently installed library.

At the end of the process, however, I still could not get jupyter at the command line. I tried a number of suggestions, but the only one that worked was to add the location of the jupyter executable to my PATH:


This strikes me as a real kludge, but it does work. After doing that, I could get jupyter notebook to work, and once I added the following to the Jupyter notebook config file I could open Markdown files as notebooks:

c.NotebookApp.contents_manager_class = 'ipymd.IPymdContentsManager'

So, the current state of [ipymd][] appears to be that line numbers do work, but you can’t convert or save an extant notebook as an md-formatted notebook. You have to create a markdown document first, then open it in Jupyter. But once you’ve done that, you have the full functionality of Jupyter.

This is going to require a bit of legwork for the current project on which I am working, but I think it’s going to make my collaborator, who is not a convert (yet!) to Jupyter, a whole lot happier.

Epistemological Pluralism

Recently, someone in The Humanist referenced the notion of epistemological pluralism: “Epistemological pluralism is a term used in philosophy, economics, and virtually any field of study to refer to different ways of knowing things, different epistemological methodologies for attaining a full description of a particular field.” (Wikipedia)

As I repeatedly tell people who want to dismiss quantitative or mathematical approaches to humanistic subjects/objects of study: it’s not that I am leaving traditional methods/approaches behind, it’s that I am acquiring additional methods/approaches. Biologists can both love a particular fern as well as study all ferns, all plants and understand a fern as representative of that larger class of objects/phenomena. I want the same thing for the things I study.

pandas Filters

Some things that pandas makes easy:

Action pandas code
View a Column df['name] or df.name
View 2 Columns df[['name', 'name2']]
View First 2 Rows df[:2]
View All Rows Where Value > 50 df[df['value'] > 50]
View a Row df.ex['RowID']
View a Column df.ix[:, 'value']
View a “Cell” based on row and column df.ix['rowid', 'column']

e.g., males = df[(df[Gender] == 'male') & (df[Year] == 2014)]