Skip to content

Instantly share code, notes, and snippets.

View AmrishJhingoer's full-sized avatar
💭
I may be slow to respond.

Amrish Jhingoer AmrishJhingoer

💭
I may be slow to respond.
View GitHub Profile
@AmrishJhingoer
AmrishJhingoer / ipynb_html_text.py
Created October 7, 2025 17:07
ipynb fancy text styling
from IPython.display import display,HTML
c1,c2,f1,f2,fs1,fs2=\
'#eb3434','#eb3446','Akronim','Smokum',30,15
def dhtml(string,fontcolor=c1,font=f1,fontsize=fs1):
display(HTML("""<style>
@import 'https://fonts.googleapis.com/css?family="""\
+font+"""&effect=3d-float';</style>
<h1 class='font-effect-3d-float' style='font-family:"""+\
font+"""; color:"""+fontcolor+"""; font-size:"""+\
str(fontsize)+"""px;'>%s</h1>"""%string))