QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
74 stars 23 forks source link

FEAT: Added timestamp in metadata #285

Closed AakashGfude closed 4 years ago

AakashGfude commented 4 years ago

Timestamp added in the date key of the metadata object of notebooks.

{
 "cells": [],
 "metadata": {
  "filename": "index.rst",
  "date" : <date>,
  "kernelspec": {
   "display_name": "Python",
   "language": "python3",
   "name": "python3"
  },
  "title": "Quantitative Economics with Python"
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
mmcky commented 4 years ago

thanks @AakashGfude I will include this for 0.5.0 and will do some testing on this tonight.

mmcky commented 4 years ago

fix for travis issue is contained in #211 so will need to pull in master once merged.

mmcky commented 4 years ago

@DrDrij this adds a timestamp. Can this be parsed in the html?

"metadata": {
  "date": 1570003196.9671474,
  "filename": "inline.rst",
  "kernelspec": {
   "display_name": "Python",
   "language": "python3",
   "name": "python3"
  },
  "title": "Inline"
 },
mmcky commented 4 years ago

@AakashGfude let's run with timestamp for the 0.5.0 release and see if @DrDrij can work with it at the web layer.

mmcky commented 4 years ago

thanks @AakashGfude is this tested. Can I just merge this? Looks good to me once CI is green.

mmcky commented 4 years ago

@DrDrij once 0.5.0 is avaialble on PyPI the notebooks will have timestamp information in the metadata