You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thanks for maintaining this package. Wonderful work!
I have docs that have code example interspersed with text. It might look like this:
Subsetting Ranges
=================
There are many ways to subset a PyRanges object. Each returns a new PyRanges object and does not change the old one.
.. runblock:: pycon
>>> import pandas as pd
>>> import pyranges as pr
>>> gr = pr.load_dataset("chipseq")
Chromosome only
~~~~~~~~~~~~~~~
.. runblock:: pycon
>>> import pandas as pd # ignore
>>> import pyranges as pr # ignore
>>> gr = pr.load_dataset("chipseq") # ignore
>>> gr["chrX"]
Is there a way to let me reuse the object gr in the second pycon block? I can use the #ignore hack, but it would be nice to be able to avoid it.
The text was updated successfully, but these errors were encountered:
First off, thanks for maintaining this package. Wonderful work!
I have docs that have code example interspersed with text. It might look like this:
Is there a way to let me reuse the object
gr
in the second pycon block? I can use the #ignore hack, but it would be nice to be able to avoid it.The text was updated successfully, but these errors were encountered: