-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: add jinja2
as a hard dependency for DataFrame.to_latex/to_html
#43423
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a whatsnew note (in the dep section that this is now required)
# Conflicts: # pandas/io/formats/style.py # pandas/tests/io/formats/style/test_to_latex.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add this to the python-dev dependencies file, too. If we are going to go with this, our wheel building repos(Macpython, conda-forge) will also need updating too.
do you have any examples of PRs done this before - sorry never specifically built and released packages myself. |
That's fine, I can do it for you if you want. In case you want to take a look, https://github.com/MacPython/pandas-wheels is the repo for our pip wheels and https://github.com/conda-forge/pandas-feedstock is the repo for conda-forge package. I think the main thing left to do for this PR is adding jinja2 to the python-dev yml file. Right now, jinja2 is getting pulled at install time, but we should explicitly specify it here. pandas/.github/workflows/python-dev.yml Lines 44 to 49 in 011c016
We should probably discuss whether this is landing in 1.4 or 2.0 first in the other PR, though. (P.S. It might be worth considering using the extra_requires section in setup.py instead of requiring this as a hard dependency. This would mean doing something like |
My plan was to try and use the jinja2 template scheme for |
@attack68 I edited my comment above. I think jinja2 is a required dependency of jupyter so we should be able to close this PR(IIUC, the main concern was lack of support for jupyter notebooks when the non-jinja implementation was deprecated) and proceed directly with the deprecations. |
Agreed, if we implement a) Users of Jupyter already have jinja2 and can render it. |
This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. |
closing this temporarily pending implementation in pandas 2.0 |
As per #43161 (comment)
Goes towards #43161 and #41648
This is WIP since 41648 is not finished yet, but it is getting close.