Fixed subdirectory issue.

I changed the structure to put code in ./code, but that didn't work for preface,
whish is not in a subdirectory (parallel to ./code).
This commit is contained in:
Roger Labbe
2014-09-02 20:34:18 -07:00
parent c9696d8fe9
commit 842232d2ab
2 changed files with 11 additions and 9 deletions

View File

@@ -2,8 +2,8 @@
from IPython.core.display import HTML
import matplotlib.pylab as pylab
def load_style():
styles = open("../styles/custom2.css", "r").read()
def load_style(name='../styles/custom2.css'):
styles = open(name, 'r').read()
return HTML(styles)
pylab.rcParams['lines.linewidth'] = 2