iruby
iruby copied to clipboard
Add CSS files in iruby notebook
I am facing a problem while adding CSS in IRuby notebook. Is there any method (like IRuby.javascript() to add js) to include CSS in IRuby notebook?
@Prakriti-nith Could you try Jupyter notebook's custom.css?
Yes, that will help but I need to load the CSS files from code. I am working on daru-view for which I have to load the dependent CSS file in IRuby notebook whenever user sets the plotting library. Any help would do.
Would this work?
IRuby.display(IRuby.html(
Erector.inline{ style raw(css_string) }.to_html
))