Dear friends, I've been using Pywikibot for long in order to handle the reporting tasks of the Spanish editions of the Wiki Loves (Monuments, Earth...) contests. See here, for instance. The output is generated by a pywikibot-enabled Python notebook run from PAWS (I don't know which Pywikibot release it's running, sorry) and deeply relies on pandas and matplotlib for creating the content. The "dataset" contains information about the images being uploaded as part of the contest (see the dataset here). As you can see, I'm using <pre></pre> for showing the content and removing the first and the last line when reading the content from the notebook to update the reports.
I'm not quite happy with this poor-man CSV approach and when I noticed that there was a way to "properly" store datasets in commons (Tabular Data) I tried to get advantage of it (BTW, handling this Tabular Data from pandas is much harder than doing it from CSV, but it seems to be the new "standard" in the WM projects). However, after creating the JSON structure in the notebook, turning it into a string and using the regular 'save' method associated to a 'Page', I was not successful at all. See the results in here. It seems as a valid Tabular Data structure (in fact, it's is copied from here (just a row)), but it doesn't show as a valid Tabular Data file and, what's more important, if I try to edit it regularly all I get the following message (and no option to actually edit the page):
Content format not supported.
The content format application/json+pretty is not supported by the content model wikitext.
I've asked the responsible people and the answer is really uninformative.
Have you got the slightest idea of what I'm doing wrong? Please, let me know which additional information you need. Thanks.