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

Set cell-index attribute as a string #1317

Merged
merged 1 commit into from Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion share/jupyter/voila/templates/classic/index.html.j2
Expand Up @@ -66,7 +66,7 @@
{%- for cell in nb.cells -%}
{% set cellloop = loop %}
{%- block any_cell scoped -%}
<div cell-index={{cellloop.index}}>
<div cell-index="{{cellloop.index}}">
{{ super() }}
</div>
{%- endblock any_cell -%}
Expand Down
2 changes: 1 addition & 1 deletion share/jupyter/voila/templates/lab/index.html.j2
Expand Up @@ -95,7 +95,7 @@
{%- for cell in cell_generator(nb, kernel_id) -%}
{% set cellloop = loop %}
{%- block any_cell scoped -%}
<div cell-index={{cellloop.index}}>
<div cell-index="{{cellloop.index}}">
<script>
voila_process({{ cellloop.index }}, {{ cell_count }})
</script>
Expand Down
6 changes: 3 additions & 3 deletions share/jupyter/voila/templates/reveal/index.html.j2
Expand Up @@ -75,19 +75,19 @@
{% endblock data_priority %}

{%- block codecell -%}
<div cell-index={{cellloop.index}}>
<div cell-index="{{cellloop.index}}">
{{ super() }}
</div>
{%- endblock codecell -%}

{%- block markdowncell -%}
<div cell-index={{cellloop.index}}>
<div cell-index="{{cellloop.index}}">
{{ super() }}
</div>
{%- endblock markdowncell -%}

{%- block rawcell -%}
<div cell-index={{cellloop.index}}>
<div cell-index="{{cellloop.index}}">
{{ super() }}
</div>
{%- endblock rawcell -%}
Expand Down