Code Monkey home page Code Monkey logo

Comments (8)

jstac avatar jstac commented on August 10, 2024

Something to work on while @DrDrij is here?

from sphinxcontrib-jupyter.

mmcky avatar mmcky commented on August 10, 2024

hey @DrDrij I think we can fix this pretty easily on the sphincontrib-jupyter side.

Can you let me know what you need as the metadata format

nb.metadata.next = (link, title-text)
nb.metadata.previous = (link, title-text)

from sphinxcontrib-jupyter.

DrDrij avatar DrDrij commented on August 10, 2024

@mmcky That looks perfect. Access to title and link is all I need.

from sphinxcontrib-jupyter.

mmcky avatar mmcky commented on August 10, 2024

@DrDrij can I give you the following meta data sample?

 "metadata": {
  "date": 1591752665.62833,
  "filename": "about_py.rst",
  "kernelspec": {
   "display_name": "Python",
   "language": "python3",
   "name": "python3"
  },
  "next_doc": {
   "link": "getting_started",
   "title": "Setting up Your Python Environment"
  },
  "prev_doc": {
   "link": "index_learning_python",
   "title": "Introduction to Python"
  },
  "title": "About Python"
 },

this should be:

  1. relative uri (without the html postfix added)
  2. title of that document

it will be convenient to not have html hard coded in case we need to reference an ipynb later on etc.

from sphinxcontrib-jupyter.

DrDrij avatar DrDrij commented on August 10, 2024

I can work with that :)

from sphinxcontrib-jupyter.

mmcky avatar mmcky commented on August 10, 2024

last question - if there is no previous or next document would you rather

missing metadata (i.e. no previous_doc as a key in the notebook metadata)
OR
some value to indicate not applicable

from sphinxcontrib-jupyter.

mmcky avatar mmcky commented on August 10, 2024

the current index metadata is

 "metadata": {
  "date": 1591753649.837961,
  "filename": "index.rst",
  "kernelspec": {
   "display_name": "Python",
   "language": "python3",
   "name": "python3"
  },
  "next_doc": {
   "link": "index_toc",
   "title": "Table of Contents"
  },
  "title": "Python Programming for Economics and Finance"
 },

from sphinxcontrib-jupyter.

DrDrij avatar DrDrij commented on August 10, 2024

That works @mmcky - I will enter an if clause to check whether prev/next exist.

from sphinxcontrib-jupyter.

Related Issues (20)

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.