lexcube icon indicating copy to clipboard operation
lexcube copied to clipboard

Render nothing in jupyter notebook[BUG]

Open Guankuiliu opened this issue 1 year ago • 5 comments

Hi Maximilian,

Thank you for your excellent work. I have installed lexcube but encountered an issue - the images are not rendering (no error reported), and I'm not sure what's causing it.

image

image

Guankuiliu avatar Mar 17 '24 13:03 Guankuiliu

Hi Guankui, thanks for your report! What IDE/program are you using to display Jupyter notebook content? Also, is it possible to retrieve any error message, e.g., through a web inspector? Thanks 😃

msoechting avatar Mar 21 '24 09:03 msoechting

Here it is: localhost-1711090551706.log

Guankuiliu avatar Mar 22 '24 07:03 Guankuiliu

Hi @Guankuiliu, thanks for the log! I have an idea on what might be the issue. Which program/IDE are you using though? I would need to test my solution locally and don't recognize the GUI in your screenshot 😄

msoechting avatar Apr 02 '24 09:04 msoechting

Hi @msoechting, I am using the "oceans16" theme from Jupyterthemes. Here is the list of packages for the conda environment. The operating system is Win10, and the browser is Chrome. requirements.txt

Guankuiliu avatar Apr 05 '24 12:04 Guankuiliu

Hi @Guankuiliu,

Your requirements.txt does not contain jupyter_server or jupyterthemes, I am not sure the requirements.txt is complete?

I could not reproduce the issue in a Python virtualenv with Jupyter Notebook 7.1.2 or 6.0.0 with your requirements and the "oceans16" theme installed on Windows 11: grafik

Ideas for fixing:

  1. Try "trusting" the environment (top-right, next to the kernel selection)
  2. Try upgrading Jupyter Notebook
  3. Try using Jupyter Lab (jupyter lab instead of jupyter notebook)
  4. Try installing widgetsnbextension or ipywidgets 4.0 (based on a warning I got in my web console)
  5. Sometimes the extension JavaScript code is fetched from NPM instead of locally. However, I saw that the default NPM registry is blocked in China, maybe this is a problem? (https://stackoverflow.com/questions/22764407/npm-install-goes-to-dead-in-china)
  6. Try in a fresh environment and run pip install lexcube, which also installs the latest compatible Jupyter version.

If the issue persists, you can also provide:

  1. Exact browser version you are using (three dot menu -> "About Google Chrome")
  2. Python version (python --version)

msoechting avatar Apr 09 '24 12:04 msoechting

Hi @Guankuiliu. Some general bugs have been fixed since the last time you used Lexcube. Please try again with the latest version and let me know if it works out.

msoechting avatar Aug 26 '24 13:08 msoechting

Hi @msoechting. In VSCode, everything works fine. After reinstalling, the issue still persists in Chrome. I think it might be a problem with my system itself. image image

Guankuiliu avatar Aug 26 '24 17:08 Guankuiliu

Thanks for the reply. In Chrome, do you get any error in the developer console (F12)?

msoechting avatar Aug 27 '24 08:08 msoechting

I think something went wrong with the 0.4.18 published packages. I could reproduce the error in Google Chrome; the NPM 0.4.18 package contained "0.4.17" as a version string, I guess that was the problem... I published 0.4.19 and it works in Chrome again! Let me know if 0.4.19 also works for you 😄

msoechting avatar Aug 27 '24 08:08 msoechting

Thanks for the reply. In Chrome, do you get any error in the developer console (F12)?

Actually, I noticed multiple errors in the Chrome developer console, but since I deleted that conda environment, I'm no longer able to reproduce the errors.

Guankuiliu avatar Aug 27 '24 15:08 Guankuiliu

I think something went wrong with the 0.4.18 published packages. I could reproduce the error in Google Chrome; the NPM 0.4.18 package contained "0.4.17" as a version string, I guess that was the problem... I published 0.4.19 and it works in Chrome again! Let me know if 0.4.19 also works for you 😄

Hi @msoechting, I just created a new conda environment and reinstalled 0.4.19 version. Now everything is working fine with Jupyter Notebook in Google Chrome. Thank you! image

Guankuiliu avatar Aug 27 '24 15:08 Guankuiliu

Great to hear! Thank you for reporting the issues.

msoechting avatar Aug 28 '24 07:08 msoechting