You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "fail_case.py", line 19, in <module>
exportHtml = FullHtmlExporter(filters={'highlight':my_highlight})
File "/Users/jakevdp/Opensource/ipython/IPython/nbconvert/exporters/exporter.py", line 163, in __init__
if issubclass(user_filter, MetaHasTraits):
TypeError: issubclass() arg 1 must be a class
Perhaps testing for isinstance(user_filter, type) would fix this -- though I'm not sure.
The text was updated successfully, but these errors were encountered:
It looks like the offending line could be replaced with self.register_filter(key, user_filter). I tried this, and got a long and involved traceback. Note that the my_highlight function is identical to the highlight function that it is replacing: are user filters handled differently than default filters?
I'm attempting to override the
highlight
filter for the notebook exporters. The following snippet leads to a failure:This is the traceback:
Perhaps testing for
isinstance(user_filter, type)
would fix this -- though I'm not sure.The text was updated successfully, but these errors were encountered: