Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AhmadAlsaadi
GitHub Repository: AhmadAlsaadi/Arabic-python-notebook
Path: blob/master/style.py
675 views
1
from IPython.core.display import HTML
2
3
def _set_css_style(css_file_path):
4
"""
5
Read the custom CSS file and load it into Jupyter.
6
Pass the file path to the CSS file.
7
"""
8
9
styles = open(css_file_path, "r").read()
10
s = '<style type="text/css">%s</style>' % styles
11
return HTML(s)
12
_set_css_style("custom.css")
13