Table info not truncated when rendering HTML

Table info not truncated when rendering HTML

SM_JMSM_JM Posts: 3Questions: 1Answers: 0

Link to test case:
N/A
Debugger code (debug.datatables.net):
N/A
Error messages shown:
N/A
Description of problem:
I have a table that has job data including position, company etc, in a csv format. However, it also has detailed job information represented as in html tags.

The problem I have is that itables renders the detailed job information and makes the entire table unreadable because it does not employ any truncation (see screenshot below).

How do I enable truncation or disable HTML rendering? I really just want to get the experience of the how it working in colabs. Unfortunately because I need to utilise my GPU I have to use the offline Jupyter lab

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    See if the ellipsis plugin does what you want.
    https://www.datatables.net/plug-ins/dataRender/ellipsis

    Kevin

  • SM_JMSM_JM Posts: 3Questions: 1Answers: 0

    Thanks, I see installation methods only for JavaScript, is it also possible to install on a Jupyter lab instance?

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin

    Probably - it is just a Javascript file. What are the installation requirements for Jupyter lab? Can you download the file and host it? Or use it from NPM? The instructions for that are on the page Kevin linked to.

    Allan

  • SM_JMSM_JM Posts: 3Questions: 1Answers: 0

    Thanks, yes you can self host and run jupyter lab locally however, I am not sure how you integrate JavaScript into pyton to get this plugin to work.
    I'm going to use colabs to for now, but thanks for the assistance.

Sign In or Register to comment.