Skip to content

Commit 986b402

Browse files
Enhance Jupyter_CopySpec documentation with additional comments for enabling/disabling the copy spec button
1 parent 3dfa084 commit 986b402

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

devdocs/misc/Jupyter_CopySpec.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
]# Debugging Jupyter Plots
1+
# Debugging Jupyter Plots
22
Unlike debugging a demo application, debugging a plot specification from Jupyter allows for quick iteration and immediate feedback on changes.
33

44
To obtain the plot specification as a JSON string in a Jupyter notebook, follow these steps:
@@ -18,6 +18,8 @@ The button’s visibility can be managed for all notebooks using the following m
1818
- `%toggle_copy_spec_button on` → Show the button
1919
- `%toggle_copy_spec_button off` → Hide the button
2020

21+
These commands can be used in separate notebooks, such as `enable_copy_spec_button.ipynb` and `disable_copy_spec_button.ipynb`, to enable or disable the button for all notebooks.
22+
2123

2224
### Removing the hook
2325
To remove the `_repr_html_` hook, delete the `50-lets-plot-hook.py` file from the IPython startup directory (usually `~/.ipython/profile_default/startup/`) and restart the kernel.

0 commit comments

Comments
 (0)