Skip to content

Instantly share code, notes, and snippets.

View mr-easy's full-sized avatar
😄

Rishabh Gupta mr-easy

😄
View GitHub Profile
@mr-easy
mr-easy / jupyter_calendar.py
Last active January 18, 2024 07:00 — forked from flutefreak7/jupyter_calendar.py
Make an HTML calendar in a Notebook and highlight some days...
# intended for use in a Jupyter Notebook or similar.
import calendar
from calendar import HTMLCalendar
from IPython.display import HTML
class HighlightedCalendar(HTMLCalendar):
def __init__(self, highlight_dates={}, *args, **kwargs):
super().__init__(*args, **kwargs)
self._highlight_dates = {}
for color,dates in highlight_dates.items():