nbconvert icon indicating copy to clipboard operation
nbconvert copied to clipboard

lxml_clean_html dependency issue in nbconvert lower version (6.5.1)

Open sjkim2322 opened this issue 9 months ago • 1 comments

from version 7.1.0, the lxml dependency has been removed, so this issue is unlikely to occur.

but In my case, I am using elyra, and the version of nbconvert used by elyra is fixed to 6.5.1.

The install requirement for nbconvert version 6.5.1 does not specify the lxml version.

lxml requires the lxml_html_clean dependency starting from version 5.2.0.

I can additionally install the lxml_html_clean module myself, but as mentioned above, I am using elyra and it is not easy to install additional modules.

Therefore, I would like to ask if there is an easy way to solve this problem in nbconvert.

sjkim2322 avatar May 08 '24 01:05 sjkim2322

It looks like Elyra is pinning one specific version of nbconvert. The dependencies of an existing version can't be changed, so even if this was fixed for 6.5.x it would get a new version number and need a change in Elyra.

Normally, if you pin dependencies to very specific versions, you also pin transient dependencies to avoid just this kind of issue from newer versions of transient dependencies. There are tools that can help manage that, like pip-tools which works with familiar requirements.txt files, or poetry which has its own lock file format.

takluyver avatar Aug 08 '24 21:08 takluyver