Skip to content

Commit 7977ff8

Browse files
DOC: Add custom :button_text: for all examples
See jupyterlite/jupyterlite-sphinx#157
1 parent 68a2f41 commit 7977ff8

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

doc/source/ref/cwt.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ A variety of continuous wavelets have been implemented. A list of the available
9090
wavelet names compatible with ``cwt`` can be obtained by:
9191

9292
.. try_examples::
93+
:button_text: Try it in your browser!
9394

9495
>>> import pywt
9596
>>> wavelist = pywt.wavelist(kind='continuous')
@@ -207,6 +208,7 @@ sampled at 100 Hz, a center frequency of 1.0 corresponds to ~100 Hz at
207208
particular wavelet, one would analyze a signal using ``scales >= 2``.
208209

209210
.. try_examples::
211+
:button_text: Try it in your browser!
210212

211213
>>> import numpy as np
212214
>>> import pywt
@@ -237,6 +239,7 @@ frequency fs. This function is useful for specifying the transform as a function
237239
of frequency directly.
238240

239241
.. try_examples::
242+
:button_text: Try it in your browser!
240243

241244
>>> import numpy as np
242245
>>> import pywt

doc/source/ref/signal-extension-modes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ computations can be performed with the `periodization`_ mode:
9090
**Example:**
9191

9292
.. try_examples::
93+
:button_text: Try it in your browser!
9394

9495
>>> import pywt
9596
>>> print(pywt.Modes.modes)
@@ -105,6 +106,7 @@ Notice that you can use any of the following ways of passing wavelet and mode
105106
parameters:
106107

107108
.. try_examples::
109+
:button_text: Try it in your browser!
108110

109111
>>> import pywt
110112
>>> (a, d) = pywt.dwt([1,2,3,4,5,6], 'db2', 'smooth')

doc/source/ref/wavelets.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Custom discrete wavelets are also supported through the
4949
**Example:**
5050

5151
.. try_examples::
52+
:button_text: Try it in your browser!
5253

5354
>>> import pywt
5455
>>> wavelet = pywt.Wavelet('db1')
@@ -129,6 +130,7 @@ Custom discrete wavelets are also supported through the
129130
**Example:**
130131

131132
.. try_examples::
133+
:button_text: Try it in your browser!
132134

133135
>>> def format_array(arr):
134136
... return "[%s]" % ", ".join(["%.14f" % x for x in arr])
@@ -172,6 +174,7 @@ Approximating wavelet and scaling functions - ``Wavelet.wavefun()``
172174
**Example:**
173175

174176
.. try_examples::
177+
:button_text: Try it in your browser!
175178

176179
>>> import pywt
177180
>>> wavelet = pywt.Wavelet('db2')
@@ -187,6 +190,7 @@ Approximating wavelet and scaling functions - ``Wavelet.wavefun()``
187190
**Example:**
188191

189192
.. try_examples::
193+
:button_text: Try it in your browser!
190194

191195
>>> import pywt
192196
>>> wavelet = pywt.Wavelet('bior3.5')
@@ -240,6 +244,7 @@ from plain Python lists of filter coefficients and a *filter bank-like* object.
240244
**Example:**
241245

242246
.. try_examples::
247+
:button_text: Try it in your browser!
243248

244249
>>> import pywt, math
245250
>>> c = math.sqrt(2)/2
@@ -274,6 +279,7 @@ from plain Python lists of filter coefficients and a *filter bank-like* object.
274279
**Example:**
275280

276281
.. try_examples::
282+
:button_text: Try it in your browser!
277283

278284
>>> import pywt
279285
>>> wavelet = pywt.ContinuousWavelet('gaus1')
@@ -329,6 +335,7 @@ from plain Python lists of filter coefficients and a *filter bank-like* object.
329335
**Example:**
330336

331337
.. try_examples::
338+
:button_text: Try it in your browser!
332339

333340
>>> import pywt
334341
>>> wavelet = pywt.ContinuousWavelet('gaus1')
@@ -359,6 +366,7 @@ Approximating wavelet functions - ``ContinuousWavelet.wavefun()``
359366
**Example:**
360367

361368
.. try_examples::
369+
:button_text: Try it in your browser!
362370

363371
>>> import pywt
364372
>>> wavelet = pywt.ContinuousWavelet('gaus1')
@@ -376,6 +384,7 @@ Approximating wavelet functions - ``ContinuousWavelet.wavefun()``
376384
**Example:**
377385

378386
.. try_examples::
387+
:button_text: Try it in your browser!
379388

380389
>>> import pywt
381390
>>> wavelet = pywt.DiscreteContinuousWavelet('db1')

0 commit comments

Comments
 (0)