Last active
September 25, 2015 02:48
-
-
Save deeplycloudy/88ad2ac857484582939b to your computer and use it in GitHub Desktop.
While grading homework assignments turned in as IPython notebooks, I wanted to insert my remarks as highlighted text in a Markdown cell. You can use the following CSS style and markup to do it. In fact,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In a code cell at the beginning of your notebook, enter: | |
%%html | |
<style type="text/css"> | |
span.ecb { background: yellow; } | |
</style> | |
Then in any other markdown cell you can put: | |
<span class="ecb">Comments by ECB are highlighted like so.</span> | |
and they will turn yellow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated 8 May 2014 to reflect new security model in IPython 2.0, as detailed here: http://ipython.org/ipython-doc/dev/notebook/security.html