Skip to content

Commit

Permalink
Clean up ipystartup (#201)
Browse files Browse the repository at this point in the history
* Clean up ipystartup

* Fix flake
  • Loading branch information
philippjfr authored Sep 27, 2021
1 parent 6c3b100 commit fbc510d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nbsite/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def generate_rst(
paths=_prepare_paths(project_root,examples=examples,doc=doc)

print("Project='%s': Converting notebooks at '%s' to rst at '%s'..."%(project_name,paths['examples'],paths['doc']))
for filename in glob.iglob(os.path.join(paths['examples'],"**","*.ipynb"), recursive=True):
for filename in glob.iglob(os.path.abspath(os.path.join(paths['examples'],"**","*.ipynb")), recursive=True):
relpath = os.path.relpath(filename, paths['examples'])
# TODO: decide what to do about gallery later
if relpath.startswith('gallery'):
Expand Down
15 changes: 6 additions & 9 deletions nbsite/ipystartup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
mpl.use('agg')

try:
import holoviews.plotting.widgets as hw
hw.NdWidget.export_json=True
hw.NdWidget.json_load_path = './'
hw.NdWidget.json_save_path = './'
del hw
import holoviews.plotting.bokeh # noqa
except:
pass

import holoviews.plotting.mpl as hmpl
hmpl.MPLPlot.fig_alpha = 0
del hmpl

try:
import holoviews.plotting.mpl as hmpl
hmpl.MPLPlot.fig_alpha = 0
except:
pass

0 comments on commit fbc510d

Please sign in to comment.