Giter Club home page Giter Club logo

mkreports's People

Contributors

hhoeflin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mkreports's Issues

Restrict number of lines exported by default for tables

Tables can get very large. In order to prevent huge tables being written to disk accidentially, we restrict the number of rows to print by default. A warning should be logged when this occurs. Setting to None should correspond to no restrictions.

Write example pages

Several example pages for the different supported types for images, tables etc

Improve README

To improve README

  • include gif or image
  • concentrate on when to use mkreports
  • less focus on vim

Argument parser

Add a simple argument parser where minimal things can be specified, like the location of where the page should be created.

Add project root

Add availability of a project root, e.g. when creating code objects; absolute filenames should still be possible but the exception and potentially trigger a warning.

Plugin for ipython

Ipython plugin that automatically copies code and items written in ipython console into a markdown report. This is intended to make it easy to browse tables and images also in situations where one only has access to a console.

Better support for paths

Currently when adding a page with a path like page("QC/something"), the page gets inserted under "Qc", so the second letter becomes lowercase.

Adding functions as code

Option in a context manager to include additional code items, such as functions or modules (?)

Code supplied as links, not actual code

It is easy and fast to include source code file references as part of the analysis.

Instead of including the snippet of code that was tracked, could instead provide simple links to the included code files?

Refactor md class

The markdown classes should be refactored. Instead of returning requirements, backmatter and core markdown separately, this should be given as a single return value for core and backmatter and as a classmethod for the requirements.

The core and backmatter markdown should certainly be returned as a single type instance. The reason is that otherwise, additional coordination needs to be done regarding saving of ids or the page_path where the object is supposed to be stored.

For the requirements, the reason is that the requirements only depend on the class, not individual instances.

More image formats

Include support for more different image types, such as seaborn, altair etc.

Better mkdocs serve

When using mkreports with mkdocs serve, during creation of files, errors can occur in mkdocs. Then the server shuts down. Mkreports needs a better way to handle this.

Table that can have images in it

Currently tables can´t include things like images. As far as possible, nested markdown items inside tables should be enabled.

Code selection

Improved support for selecting which code to display. It should be possible to exclude certain pieces of code, especially the parts that are related to writings things out in markdown (this sort of doubles things).

md object Image not named well

The md object 'Image' is not named well; 'Figure' would be a better term, as it is Matplotlib and derived ones; Image suggests any image should work, but PIL is also there as a separate object; this is very confusing

Tabulator id not passed along

The ID for the tabulator table is not passed correctly; this can lead to issues when loading two tables that have identical content (e.g. are emtpy).

Context manager when creating sections

Currently, there is no visual structuring of code as one section after the other gets added to the page. Some visual support to distinguish the different sections of a document would be helpful.

One option for this would be a context manager that is returned from the page upon adding. Then inside the context manager code, all append operations for a specific heading could be performed and this code would be added to the page when the context manager exits.

How to exactly implement: TBD

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.