-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom html/css? #40
Comments
To help me understand, please, could you give me an example of what you're trying to do? Have you seen this documentation? It includes an example to inject HTML into an output cell. |
Not sure whether this may help you: a kernel spec may include |
Thanks for the quick response! I don't know how it is possible but I have overlooked the documentation. I guess the What I am trying to achieve: I have this notebook that I use with RISE to produce live presentation slides. I would like to center the 2nd line, i.e. "Jakub Holý - Iterate conference 8/2015". So I want to have either
(using a class rather then style so that I can use it on multiple elements) or just this
The question is where to put it. Regarding Thank you! |
This should do the trick using IJavascript: $$html$$ = '<script>document.styleSheets[0].insertRule(".rendered_html .my-centered { text-align: center; }", 0);</script>'; But I would also ask this question on the Jupyter mailing list. There may be a recommended way to add a |
This message from the mailing list may be relevant: https://groups.google.com/d/msg/jupyter/Hak-Xjwro3k/_NznabngCwAJ |
@jakubholynet I'm closing this issue. If the comments above don't help, please, feel free to reopen this issue. |
Thank you! |
I am new to Jupyter notebooks and cannot figure out how to include custom HTML in a notebook. Namely I would like to add some CSS styles to use later on (I am successfully using ijavascript with RISE to create live slide shows and want to center things etc.).
I can google out some solutions but they apply to ipython (relying on executing python code). Some suggest using
<style>
in a markdown cell but that doesn't seem to work for me.Could you please extend the documentation with tips in this regard?
Thanks a lot!
The text was updated successfully, but these errors were encountered: