To enhance our web application's user experience, we need to integrate a Jupyter notebook into one of our pages. The notebook contains insights from exploratory analysis of hate crime data. Since the users only need to view this information and do not require any interactivity with the notebook's contents, the notebook will be rendered statically.
Objective
Convert the Jupyter notebook into a static format (HTML or Markdown) and embed it into the Next.js application, ensuring that it is displayed cleanly and is easy to read.
Tasks
[x] Convert the Jupyter notebook to HTML/Markdown.
Use nbconvert to transform the notebook:
jupyter nbconvert --to html path/to/notebook.ipynb
# or
jupyter nbconvert --to markdown path/to/notebook.ipynb
[x] Add the converted file to the project (consider placing it in the public directory for HTML or importing Markdown directly).
[x] Create a Next.js component to display the notebook content.
Description
To enhance our web application's user experience, we need to integrate a Jupyter notebook into one of our pages. The notebook contains insights from exploratory analysis of hate crime data. Since the users only need to view this information and do not require any interactivity with the notebook's contents, the notebook will be rendered statically.
Objective
Convert the Jupyter notebook into a static format (HTML or Markdown) and embed it into the Next.js application, ensuring that it is displayed cleanly and is easy to read.
Tasks
nbconvert
to transform the notebook:public
directory for HTML or importing Markdown directly).[x] Create a Next.js component to display the notebook content.
const NotebookComponent = () => { const markdownContent = require('path/to/converted.md'); return{markdownContent} ;
};
Acceptance Criteria
Notes