ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.23k stars 806 forks source link

ExecuteTime's default absolute format disagrees with its documentation and description file #1615

Closed stanwest closed 1 year ago

stanwest commented 1 year ago

Both the documentation and description file for ExecuteTime give 'YYYY-MM-DD HH:mm:ss' as the default format for displaying absolute time:

https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/92bb755152c870caf9cac1acebb168f71f9dae6c/src/jupyter_contrib_nbextensions/nbextensions/execute_time/readme.md?plain=1#L76-L81

https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/92bb755152c870caf9cac1acebb168f71f9dae6c/src/jupyter_contrib_nbextensions/nbextensions/execute_time/ExecuteTime.yaml#L30-L33

However, the actual default in the code places the time before the date:

https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/92bb755152c870caf9cac1acebb168f71f9dae6c/src/jupyter_contrib_nbextensions/nbextensions/execute_time/ExecuteTime.js#L39

To use 'YYYY-MM-DD HH:mm:ss', one must explicitly set that format in a configuration file. Trying to set it within the configurator web page has no effect, because the page detects no change from the displayed value.