mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
710 stars 53 forks source link

Issue on page /custom_extensions.html #269

Open Steffenju95 opened 1 month ago

Steffenju95 commented 1 month ago

Following the instruction of Creating a custom DataTables bundle result in the error, that PyCharm is not showing Tables anymore.
I was able to fix it by adding the following, but saving pdfs still not work. (It just does nothing when I press the button)

import pdfFonts from "pdfmake/build/vfs_fonts";

I also tried replacing the pdfmake import with the following:

regarding pdfmake:

import pdfMake from "pdfmake/build/pdfmake";
import pdfFonts from "pdfmake/build/vfs_fonts";
pdfMake.vfs = pdfFonts.pdfMake.vfs;

regarding pdfmake:

import pdfMake from "pdfmake/build/pdfmake.min.js";
import pdfFonts from "pdfmake/build/vfs_fonts.js";
pdfMake.vfs = pdfFonts.pdfMake.vfs;