Created
October 16, 2019 15:34
-
-
Save rhee/967fb83d6a3385a820e0f0fbf64dfde3 to your computer and use it in GitHub Desktop.
jupyter_hide_input_when_printing.txt
This file contains hidden or 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
%%javascript | |
(function() { | |
var node = document.createElement('style'); | |
document.body.appendChild(node); | |
window.addStyleString = function(str) { | |
node.innerHTML = str; | |
} | |
}()); | |
addStyleString(` | |
@media print | |
{ | |
div.input, div.input *, div.prompt, div.prompt * | |
{ | |
display: none !important; | |
} | |
} | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment