Skip to content
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

Replace jinja2 with markdown for loading the warning message document #189

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

edan-bainglass
Copy link
Member

@edan-bainglass edan-bainglass commented Dec 14, 2024

This PR fixes an instability with using jinja2 and IPython.display.Markdown to load the warning message document. Here we instead use markdown.Markdown to convert the markdown document to HTML and render it using an ipywidget.HTML widget, which is simpler to work with (no ipywidgets.Output widgets required!).

When I add the .aiidalab/home_app_warning.md file, instead of adding the message after the home's control panel, it replaces the panel.

Before adding file
image

After adding file
image

In this PR:

image

Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@edan-bainglass edan-bainglass merged commit 3256a95 into aiidalab:main Dec 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants