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
I went through the content of such an HTML file but wasn't able to find a reliable string to detect it. Instead, I have this simple idea: after rendering via nbconvert, replace the first line of the HTML (the doctype tag) with:
<!DOCTYPE html>
<!-- generated by nbconvert -->
and detect this when displaying the HTML page.
Another strategy could be to search for an existing ipynb file with the same basename: i.e. if <basename>.ipynb exists in the same directory -> show html.
Another strategy could be to search for an existing ipynb file with the same basename: i.e. if .ipynb exists in the same directory -> show html.
One small problem with this is that it will further slow down opening the file... I like your generated by nbconvert idea; that could even get upstreamed...
plan: when opening a static html file, if it was generated by nbconvert, just render it. Simple as that.
See sagemathinc/smc-public#1 for a discussion.
The text was updated successfully, but these errors were encountered: