Skip to content

Commit

Permalink
Guard execute: option usage, note compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jan 9, 2025
1 parent efe5374 commit 0d4bc26
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/directives/replite.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ global value using an additional `:new_tab_button_text:` parameter:
plt.show()
```

It is also possible to disable the execution of the code in the Replite console by setting the `:execute:` option to `False`:
````{tip}
With `jupyterlite-core` **versions 0.5.0 and later**, it is also possible to disable the execution of
the code in the Replite console by setting the `:execute:` option to `False`. This option defaults to `True`,
and setting it has no effect in versions prior to 0.5.0.
The behaviour can also be [configured globally](../configuration.md#replite-auto-execution-with-the-replite-directive)
and then overridden in individual directives as needed.
```rst
.. replite::
Expand Down Expand Up @@ -149,5 +156,4 @@ It is also possible to disable the execution of the code in the Replite console
plt.show()
```
The behaviour can also be [configured globally](../configuration.md#replite-auto-execution-with-the-replite-directive)
and then overridden in individual directives.
````

0 comments on commit 0d4bc26

Please sign in to comment.