lexcube
lexcube copied to clipboard
Render nothing in jupyter notebook[BUG]
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.
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 😃
Here it is: localhost-1711090551706.log
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 😄
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
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:
Ideas for fixing:
- Try "trusting" the environment (top-right, next to the kernel selection)
- Try upgrading Jupyter Notebook
- Try using Jupyter Lab (
jupyter labinstead ofjupyter notebook) - Try installing widgetsnbextension or ipywidgets 4.0 (based on a warning I got in my web console)
- 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)
- 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:
- Exact browser version you are using (three dot menu -> "About Google Chrome")
- Python version (
python --version)
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.
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.
Thanks for the reply. In Chrome, do you get any error in the developer console (F12)?
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 😄
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.
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!
Great to hear! Thank you for reporting the issues.