Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions home/start_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,12 @@ def move_updown(self, name, delta):
self.write_config(config)

def _create_notification(self, content):
from IPython.display import Markdown, display
from jinja2 import Environment
from markdown import Markdown

env = Environment()
notification = env.from_string(content).render()
output = ipw.Output()
notification_widget = ipw.VBox(children=[output])
md = Markdown()
html = md.convert(content)
notification_widget = ipw.HTML(html)
notification_widget.add_class("home-notification")
with output:
display(Markdown(notification))
return notification_widget


Expand Down