Skip to content

Commit

Permalink
update to jupyter lab 4
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Jun 26, 2023
1 parent 0a53820 commit 00887ee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions hatch_build.py
Expand Up @@ -8,18 +8,18 @@
notebook_css_version = "5.4.0"
notebook_css_url = "https://cdn.jupyter.org/notebook/%s/style/style.min.css" % notebook_css_version

jupyterlab_css_version = "3.6.1"
jupyterlab_css_version = "4.0.2"
jupyterlab_css_url = (
"https://unpkg.com/@jupyterlab/nbconvert-css@%s/style/index.css" % jupyterlab_css_version
)

jupyterlab_theme_light_version = "3.6.1"
jupyterlab_theme_light_version = "4.0.2"
jupyterlab_theme_light_url = (
"https://unpkg.com/@jupyterlab/theme-light-extension@%s/style/variables.css"
% jupyterlab_theme_light_version
)

jupyterlab_theme_dark_version = "3.6.1"
jupyterlab_theme_dark_version = "4.0.2"
jupyterlab_theme_dark_url = (
"https://unpkg.com/@jupyterlab/theme-dark-extension@%s/style/variables.css"
% jupyterlab_theme_dark_version
Expand Down
2 changes: 1 addition & 1 deletion share/templates/lab/base.html.j2
Expand Up @@ -26,7 +26,7 @@

{% block input %}
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="CodeMirror cm-s-jupyter">
<div class="cm-editor cm-s-jupyter">
{{ cell.source | highlight_code(metadata=cell.metadata) | clean_html }}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions share/templates/lab/index.html.j2
Expand Up @@ -63,8 +63,8 @@ a.anchor-link {
overflow: hidden;
}
.CodeMirror.cm-s-jupyter .highlight pre {
/* weird, but --jp-code-padding defined to be 5px but 4px horizontal padding is hardcoded for pre.CodeMirror-line */
.cm-editor.cm-s-jupyter .highlight pre {
/* weird, but --jp-code-padding defined to be 5px but 4px horizontal padding is hardcoded for pre.cm-line */
padding: var(--jp-code-padding) 4px;
margin: 0;
Expand Down

0 comments on commit 00887ee

Please sign in to comment.