joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Euporie fails to open notebook files with pandas dataframe HTML in cell output #23

Closed Minyus closed 2 years ago

Minyus commented 2 years ago

Issue

I noticed that Euporie fails to open notebook files with pandas dataframe HTML in a cell output.

Reproducing steps:

  1. Prepare Python 3.8 environment with pandas (e.g. 1.3.3)
  2. Install euporie version 1.6.2.
    pip install euporie==1.6.2
  3. Create and open a new notebook.
    euporie foobar.ipynb
  4. Run a code cell which outputs a pandas dataframe HTML.
    
    import pandas as pd

pd.DataFrame()

6. Save and close the notebook.
7. Try opening the notebook, but fails to open after several seconds without any errors.
```bash
euporie foobar.ipynb
  1. [Workaround] After removing the output from the notebook file, it can be opened by Euporie.
    jupyter nbconvert --clear-output --inplace foobar.ipynb
joouha commented 2 years ago

I haven't been able to reproduce this - can you post the output of pip freeze?

joouha commented 2 years ago

Also, what operating system & terminal are you using?

Minyus commented 2 years ago

I use Wezterm in macOS. I tried creating a new Conda environment with the same Python packages, but the symptom did not reproduce, so let me close this issue. Thanks.