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

Add CSS files in iruby notebook #146

Open
Prakriti-nith opened this Issue Mar 25, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@Prakriti-nith

Prakriti-nith commented Mar 25, 2018

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?

@mrkn

This comment has been minimized.

Collaborator

mrkn commented Apr 2, 2018

@Prakriti-nith Could you try Jupyter notebook's custom.css?

@mrkn mrkn added the question label Apr 2, 2018

@Prakriti-nith

This comment has been minimized.

Prakriti-nith commented May 22, 2018

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.

@kylekyle

This comment has been minimized.

Collaborator

kylekyle commented Jul 3, 2018

Would this work?

IRuby.display(IRuby.html(
    Erector.inline{ style raw(css_string) }.to_html
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment