xarray-tutorial icon indicating copy to clipboard operation
xarray-tutorial copied to clipboard

sphinx-codeautolink improvements

Open scottyhq opened this issue 1 year ago β€’ 2 comments

Based on discussion in #82

  • [x] adds underlines to linked code docs
  • [x] does some mapping to xarray api

Lots of warnings! Would need to add lots of manual mappings for completeness... and even then it doesn't pick up things like da.resample and da.isel below because it doesn't realize that da is a DataAarray:

da = xr.tutorial.load_dataset("air_temperature", engine="netcdf4").air
monthly = da.resample(time="ME").mean()
data = da.isel(time=0)

Even so, I think the underline and hover color are nice additions

scottyhq avatar Jul 01 '24 06:07 scottyhq

🎊 PR Preview 2e3e0f53e0b297d506c5a8b54edecd5bbf073330 has been successfully built and deployed to https://xarray-contrib-xarray-tutorial-preview-pr-281.surge.sh

πŸ• Build time: 0.01s

πŸ€– By surge-preview

github-actions[bot] avatar Jul 01 '24 06:07 github-actions[bot]

Check out this pull request onΒ  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB