-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Feature request: xr.set_option('display.max_data_vars', N) #4992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Problem is that xarray is very unresponsive when you're printing many variables, see #4736. But this should do what you want I believe |
Thanks @Illviljan. I missed that issue. Is the syntax above off slightly? Is it in the docs as well? |
I might have missed adding it in docs. It's here though: https://github.com/pydata/xarray/blob/master/xarray/core/options.py Ah, it should be |
Thanks. Works great. Closing. |
idea discussed here: #4991
Copying here
the data_vars method provides a convenient ways to see the varaibles and the formatting (https://github.com/pydata/xarray/blob/master/xarray/core/dataset.py#L484) is nice. However, there are times I would look to see the full variables names not just a subset (12 is the default).
Ideally there would be a setting to toggle to specify the length of the formatter akin to https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html#overview
xr.set_option('display.max_data_vars', N)
The text was updated successfully, but these errors were encountered: