@@ -48,7 +48,8 @@ Custom discrete wavelets are also supported through the
4848
4949 **Example: **
5050
51- .. sourcecode :: python
51+ .. try_examples ::
52+ :button_text: Try it in your browser!
5253
5354 >>> import pywt
5455 >>> wavelet = pywt.Wavelet(' db1' )
@@ -128,7 +129,8 @@ Custom discrete wavelets are also supported through the
128129
129130 **Example: **
130131
131- .. sourcecode :: python
132+ .. 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])
@@ -171,7 +173,8 @@ Approximating wavelet and scaling functions - ``Wavelet.wavefun()``
171173
172174 **Example: **
173175
174- .. sourcecode :: python
176+ .. try_examples ::
177+ :button_text: Try it in your browser!
175178
176179 >>> import pywt
177180 >>> wavelet = pywt.Wavelet(' db2' )
@@ -186,7 +189,8 @@ Approximating wavelet and scaling functions - ``Wavelet.wavefun()``
186189
187190 **Example: **
188191
189- .. sourcecode :: python
192+ .. try_examples ::
193+ :button_text: Try it in your browser!
190194
191195 >>> import pywt
192196 >>> wavelet = pywt.Wavelet(' bior3.5' )
@@ -239,7 +243,8 @@ from plain Python lists of filter coefficients and a *filter bank-like* object.
239243
240244 **Example: **
241245
242- .. sourcecode :: python
246+ .. try_examples ::
247+ :button_text: Try it in your browser!
243248
244249 >>> import pywt, math
245250 >>> c = math.sqrt(2 )/ 2
@@ -273,7 +278,8 @@ from plain Python lists of filter coefficients and a *filter bank-like* object.
273278
274279 **Example: **
275280
276- .. sourcecode :: python
281+ .. try_examples ::
282+ :button_text: Try it in your browser!
277283
278284 >>> import pywt
279285 >>> wavelet = pywt.ContinuousWavelet(' gaus1' )
@@ -328,7 +334,8 @@ from plain Python lists of filter coefficients and a *filter bank-like* object.
328334
329335 **Example: **
330336
331- .. sourcecode :: python
337+ .. try_examples ::
338+ :button_text: Try it in your browser!
332339
333340 >>> import pywt
334341 >>> wavelet = pywt.ContinuousWavelet(' gaus1' )
@@ -358,7 +365,8 @@ Approximating wavelet functions - ``ContinuousWavelet.wavefun()``
358365
359366 **Example: **
360367
361- .. sourcecode :: python
368+ .. try_examples ::
369+ :button_text: Try it in your browser!
362370
363371 >>> import pywt
364372 >>> wavelet = pywt.ContinuousWavelet(' gaus1' )
@@ -375,7 +383,8 @@ Approximating wavelet functions - ``ContinuousWavelet.wavefun()``
375383
376384 **Example: **
377385
378- .. sourcecode :: python
386+ .. try_examples ::
387+ :button_text: Try it in your browser!
379388
380389 >>> import pywt
381390 >>> wavelet = pywt.DiscreteContinuousWavelet(' db1' )
0 commit comments