IPython Notebook for turning in solutions to the problems in the Essentials of Paleomagnetism Textbook by L. Tauxe

Problems in Chapter 8

Problem 1

You need to use the program curie.py, but this is a command line operation normally. To run commands from within a notebook, you can use an exclamation point before the command. So for example, if you want to know how to call the program, use the -h option. You need to supply the path to the program.


In [1]:
!curie.py -f Chapter_8/curie_example.dat -h


Traceback (most recent call last):
  File "/Users/ltauxe/Programs/PmagPy/GIT/PmagPy/programs/curie.py", line 4, in <module>
    if matplotlib.get_backend() != "TKAgg":
NameError: name 'matplotlib' is not defined

Now modify the command to just save and quit.... and the rest you are on your own. Good luck!