Background
- I'm working on a data challenge with 3GB data.
- I plotted about 10 plots using ploy-express in jupyter notebook.
- I didn't use
fig.show('notebook')
because it didn't work. - I used
py.init_notebook_mode()
, all plots show up perfectly in notebook. - They are simple plots each with 1 year of data, like
fig = px.line(df, x, y, ...)
thenfig.show()
Everything works fine in notebook.
Problem
But until I tried to convert notebook into HTML file, only the latest 6 plots show up.
The first 4 plots have titles, legends, axes, background-canvas, when I hover over them the numbers pop up, but plots are not showing up, and each has an unhappy square face with "x"-looking eyes.
I tried:
!jupyter nbconvert notebook.ipynb --to html --template classic
- or with
--execute
- or without
--template
- I increased notebook size changing
NotebookApp.max_buffer_size
, this didn't work.
I suspect this is a memory limit problem on nbconvert
or HTML-related, because:
- when I reduce it to 6 plots, all of them show up
- when I added more plots, the first ones start to experience this problem, as if there is a memory limit.
- I think these are nbconvert documentation, but I don't see any 'limit' or 'max' when writing to HTML?
Did anyone solve the same problem? Could someone help please?
Not Perfect Solution
- I have to click the legend then it shows up.
- But another graph disappears again.
- The total available is always 6 graphs like there is a limit of something