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:
1 parent
c9696d8fe9
commit
842232d2ab
2 files changed
+11
-9
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user