Skip to content

Commit

Permalink
Modify test notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Aug 22, 2024
1 parent e224fbd commit e106e01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 0 additions & 3 deletions aiidalab_widgets_base/static/styles/test.css

This file was deleted.

9 changes: 4 additions & 5 deletions notebooks/test.ipynb → notebooks/test_misc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT REMOVE!\n",
"# This triggers required jupyter-notebook specific actions.\n",
"# See `aiidalab_widgets_base.__init__.py` for details\n",
"import aiidalab_widgets_base"
"from aiidalab_widgets_base.utils.loaders import load_css_stylesheet\n",
"\n",
"load_css_stylesheet(css_path=\"../tests_notebooks/static/styles\")"
]
},
{
Expand All @@ -39,7 +38,7 @@
"outputs": [],
"source": [
"label = ipw.Label(\"Testing\")\n",
"label.add_class(\"for-testing-purposes\")\n",
"label.add_class(\"red-text\")\n",
"display(label)"
]
}
Expand Down
3 changes: 3 additions & 0 deletions tests_notebooks/static/styles/test.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.red-text {
color: rgba(255, 0, 0, 1);
}

0 comments on commit e106e01

Please sign in to comment.