Skip to content

connected=False does not work reliably in VS Code in v2.4.x #424

@mwouts

Description

@mwouts

As reported by @Norlandz in #216:

@mwouts

Maybe you can look into this debug info?

itables's visualization is good.
But itables only occasionally works (for me, since i use it, idk why).
Every time i reopen the file tab, or restart the kernel, or rerun the code, it has a chance to fail to load the data (or css).

It seem i just cannot use init_notebook_mode(all_interactive=True, connected=False),
but have to use init_notebook_mode(all_interactive=True, connected=True).

Ignore error above ---------------------, focus on error below, which pops up when i open ipynb file with itables.
Image

Image
const {ITable, jQuery: $} = await import(window._datatables_src_for_itables_2_4_4);

document.querySelectorAll("#itables_6765fcbc_d1b7_4cec_9d21_648eb0b3cd92:not(.dataTable)").forEach(table => {
    if (!(table instanceof HTMLTableElement))
        return;

    let dt_args = {
        "layout": {
            "topStart": "pageLength",
            "topEnd": "search",
            "bottomStart": "info",
            "bottomEnd": "paging"
        },
        "lengthMenu": [5, 15, 30, 100, 200],
        "style": {
            "width": "100%",
            "float": "left"
        },
        "classes": ["display", "nowrap", "compact"],
        "text_in_header_can_be_selected": true,
        "order": [],
        "downsampling_warning": "<a href=\"https://mwouts.github.io/itables/downsampling.html\">downsampled</a> from 35,092x14 to 32x14 as maxBytes=10240",
        "filtered_row_count": 35060,
        "table_html": "<table><thead>\n    <tr style=\"text-align: right;\">\n      \n      <th>ip</th>\n      <th>user</th>\n      <th>timestamp</th>\n      <th>method</th>\n      <th>uri</th>\n      <th>protocol</th>\n      <th>status</th>\n      <th>size</th>\n      <th>referer</th>\n      <th>user_agent</th>\n      <th>uri_cleaned</th>\n      <th>size_mb</th>\n      <th>date</th>\n      <th>uri_short</th>\n    </tr>\n  </thead></table>",
        "data_json": "[[\"117. omitted ]]"
    };
    new ITable(table,dt_args);
}
);

PS: My trick doesnt work anymore.

(PS: I thought my last post was long ago. )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions