jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.63k stars 4.89k forks source link

National Calendar Support #2154

Open samarsultan opened 7 years ago

samarsultan commented 7 years ago

Hello @Carreau . This Issue is to request new feature to be added to the current Notebook.

Calendar systems and calendar formats vary from region to region. Although the Gregorian calendar is used for business transactions in most countries, national conventions and government requirements make it important that computer applications accommodate local calendar formats.

Our focus is the coverage of two types of Calendars:

• The Hijri/Islamic calendar, which is a lunar calendar. • Hebrew/Jewish calendar, which is a lunisolar calendar.

National Calendar for Jupyter Notebook should be displayed according to user preferred settings, however it was found that no such preference exists.

untitled

Figure 1: Display of the date stamp in Jupyter Notebook

untitled3

Figure 2: Display of the date stamp in the generated pdf via laTex

Carreau commented 7 years ago

Hum

if this is on the PDF side we need to ping @michaelpacer, and that will likely require changes on nbconvert for the LaTeX exporter.

@michaelpacer is not available this week but should be back soon.

samarsultan commented 7 years ago

I found two places that are eligible to national calendar. One inside the notebook and the other one for the generated PDF.

takluyver commented 7 years ago

This also ties in with the proposed localisation work: https://github.com/jupyter/enhancement-proposals/pull/16