question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix itables on Jupyter Lab

See original GitHub issue

In Jupyter lab, importing itables yields an error: Javascript Error: require is not defined.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
fcollonvalcommented, Sep 7, 2020

A small fix for JupyterLab.

Cell to add at the beginning of the notebook in JupyterLab

from IPython.display import HTML, display
from time import sleep

display(HTML("""
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
"""))

sleep(0.1)

import itables.interactive
3reactions
jkochelcommented, Sep 3, 2021

the snipped stopped working unfortunately, I am getting a following error an empty table and a following error in the console: Screenshot 2021-09-03 at 14 14 02

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to align table in Jupyter Notebook - YouTube
Subscribe for more tips by click: https://www.youtube.com/channel/UCQpUJn9GfUjKkFP2X-1pjoQ?sub_confirmation=1 You can learn more Python ...
Read more >
Tables in Markdown (in Jupyter) - Stack Overflow
The first row of the table defines the headers, then the next row defines the alignment of each column. You duplicated the alignment...
Read more >
New table style truncates columns · Issue #961 - GitHub
I recently updated the notebook's table styles to match those of jupyterlab, so they should be equivalent. Unfortunately, I'm having issues ...
Read more >
How to fix dataframe table font by default? - JupyterLab
Hi, I am using pandas in jupyter-lab. ... the text in the output dataframe table is too small and I want to change...
Read more >
How to use Table Of Contents's collapse feature of JupyterLab ...
Answer · 1. From the JupyterLab UI start a terminal session image-20220318151724-1 · 2. Create the @jupyterlab/toc settings folder by executing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found