-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More information in the loading message (#258)
- Loading branch information
Showing
9 changed files
with
208 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,58 @@ | ||
--- | ||
jupytext: | ||
formats: md:myst | ||
text_representation: | ||
extension: .md | ||
format_name: myst | ||
format_version: 0.13 | ||
jupytext_version: 1.14.5 | ||
kernelspec: | ||
display_name: itables | ||
language: python | ||
name: itables | ||
--- | ||
|
||
# Troubleshooting | ||
|
||
If the table just says "Loading...", then maybe | ||
- You loaded a notebook that is not trusted (run "Trust Notebook" in View / Activate Command Palette) | ||
- You forgot to run `init_notebook_mode`, or you deleted that cell or its output | ||
```{code-cell} | ||
:tags: [hide-input] | ||
import pandas as pd | ||
from itables import show | ||
df = pd.DataFrame() | ||
tags = ( | ||
'<caption style="caption-side: bottom">A table that does not load, due ' | ||
"to <code>init_notebook_mode</code><br>not being called in this document</caption>" | ||
) | ||
show(df, connected=False, tags=tags) | ||
``` | ||
|
||
If a table says "Loading..." forever, then maybe | ||
- You forgot to run `init_notebook_mode` (like in the example above), or you deleted that cell or its output | ||
- Or you ran `init_notebook_mode(connected=True)` but you are not connected to the internet? | ||
|
||
Please note that if you change the value of the `connected` argument in | ||
the `init_notebook_mode` cell, you will need to re-execute all the cells | ||
```{tip} | ||
If you change the value of the `connected` argument in | ||
the `init_notebook_mode` cell, you need to re-execute all the cells | ||
that display interactive tables. | ||
``` | ||
|
||
It could also be that your notebook is not _trusted_. This happens when you | ||
have not run the notebook in full yourself (e.g. the notebook was sent to you with outputs, | ||
or the notebook was created by a tool like `papermill`). In that case, JavaScript | ||
code cannot run (and the interactive tables won't display) | ||
until you tell Jupyter that you trust the notebook content | ||
(run "Trust Notebook" in View / Activate Command Palette). | ||
|
||
If the above does not help, please check out the [ChangeLog](changelog.md) | ||
and decide whether you should upgrade `itables`. | ||
and decide whether you should upgrade `itables`. You can tell the version | ||
of ITables that you are using by looking at the loading message (from ITables v2.0.1 on) | ||
or by running this code snippet: | ||
```python | ||
import itables as it | ||
|
||
it.__version__ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""ITables' version number""" | ||
|
||
__version__ = "2.0.0" | ||
__version__ = "2.0.1-dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters