domvwt / esparto Goto Github PK
View Code? Open in Web Editor NEWData driven report builder for the Python data ecosystem.
License: MIT License
Data driven report builder for the Python data ecosystem.
License: MIT License
I really enjoy the simplicity of this project but I am wondering if the generated reports support advanced features:
The TOC is included into the PDF and clickable, great. For the PDF-Export it would be great to have page numbers for the parts in the table of content
Is it possible to include the current page number or maybe even the current section into a page footer? Again, the topic is a PDF output topic I assume.
Thank you for building this project.
As I said I really like working with it and I'm trying to understand if there are more usage examples somewhere in order to bring it into more use here.
We should offer an offline mode for airgapped servers and other environments with no external connection. This should be fairly straightforward by including the JS and CSS sources as optional dependencies.
This has been requested by prospective users - integration with Weasyprint is 80% complete. Only unit tests are outstanding.
Cannot export to html when matplotlib axis is negative. I get the error:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2212' in position 13531 character maps to
import unittest
import matplotlib.pyplot as plt
import esparto
class TestNegativeChar(unittest.TestCase):
def test_no_negative_char(self):
fig, ax = plt.subplots()
x = [1,2,3,4,5]
y = [1,0.5, 0, 1, 2]
ax.plot(x, y)
page = esparto.Page(title="Test")
page["Plot"] = fig
page.save_html("test-fig.html")
def test_negative_char(self):
"""This fails
UnicodeEncodeError: 'charmap' codec can't encode character '\u2212' in position 13531: character maps to <undefined>
"""
fig, ax = plt.subplots()
x = [1,2,3,4,5]
y = [-1,-0.5, 0, 1, 2]
ax.plot(x, y)
page = esparto.Page(title="Test")
page["Plot"] = fig
page.save_html("test-fig.html")
Rendering to PNG often results in blurred images - Matplotlib, Bokeh, and Plotly all support SVG format so we should default to this when possible.
I'm using your library to generate some very simple pdf documentation using existing markdown files. Some of these markdown files have included images, the images are properly displayed when I do page.save_html()
, but when I do page.save_pdf()
only the image description (and not the image itself) is included
I expected the pdf output to include the images just as the html output does.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.