Skip to content

Commit

Permalink
Simplify and remove javascript from html_annotate templates.
Browse files Browse the repository at this point in the history
This simplify and remove javascript from the annotate templates html,
and allow to expand individual lines instead of full functions.

This also only use details and summary elements, in order to make this
later compatible with html clients like JupyterLab and Nteract that do
not have global javascript context in which you can inject Javascript
without writing full extensions.

In particular we avoid to color tokens, but color background in
gree-ish/red-ish, this should allow to embed syntax highlighted code
and have proper coloring of tokens using pygments.

The style is a compromize betwen loking good as a standalone html file
and looking good when used in jupyterLab with the numba annotate magic.
  • Loading branch information
Carreau committed Mar 6, 2018
1 parent 2fb9f63 commit 07fb8ff
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 87 deletions.

0 comments on commit 07fb8ff

Please sign in to comment.