Sunday, September 4, 2016

TIL Software Series

I am starting a new series today where I will post some everyday tips that I find useful in my course of work. These tips are short and are helpful to my personal workflow. I hope that you could also find some use of these tips.

So to start, here are two of them.

Matplotlib in Python

Last Saturday, I tried working with Pandas and Matplotlib for our company hackathon. Unfortunately, I found out that Matplotlib doesn't work with the non-framework version of Python in OSX. This is the error that comes up if I try to run the non-framework version.

  globals(),locals(),[backend_name],0)
  File "/Users/avsimon/Envs/python-data-visualization-learning/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 24, in <module>
    from matplotlib.backends import _macosx
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are Working with Matplotlib in a virtual enviroment see 'Working with Matplotlib in Virtual environments' in the Matplotlib FAQ


Fortunately, there is work around for this issue. You can see it here.

How to insert quotes, code, examples, etc in Org-mode

I was updating my TIL repository when I realized that I needed to add multiline code text in it. Since enclosing multiline text with "~" doesn't work as intended. So I tried to find a solution to this problem which I am certain exists. Sure enough there is a way to do it.

Programming and Computer Science

Powered by Blogger.