How to embed internally-generated HTMLs into Jupyter notebook
See original GitHub issueIs your feature request related to a problem? Please describe.
I’ve generated some HTML plots using Plotly, e.g. my-plot.html
. Each of these plots are stored in a separate folder so that my structure looks like this
folder-to-book
└── notebook.ipynb
└── plots
└── my-plot.html
└── another-plot.html
I have already set this in my _config.yml
:
sphinx:
config:
html_extra_path: ['plots']
However, if I have a cell in the notebook (in Markdown syntax) such as
* [reference to plot](./plots/my-plot.html)
OR
* [reference to plot](./my-plot.html)
Neither seem to be recognised by myST
:
... WARNING: 'myst' reference target not found: my-plot.html
The closest pieces of docs that I’ve found that address this issue are:
Describe the solution you’d like
All these docs are focussed on adding external HTML references as opposed to internal HTML files. Can someone please point me to there or add a tip on how this can be done?
Thank you!!
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Embedding a Jupyter Notebook - SORSE
In this blog post I'll walk through the individual steps we took to embed Jupyter within our application. Although this isn't a tutorial...
Read more >Creating a table of contents with internal links in IPython ...
Many people have asked me how I create the table of contents with internal links for my IPython Notebooks and Markdown documents on...
Read more >Inserting a Link to a Webpage in an IPython Notebook
First open a markdown cell in Jupyter - can be a new markdown cell or an existing markdown cell. Then copy and paste...
Read more >Embedding Jupyter Widgets in Other Contexts than the ...
The web page needs to load RequireJS and the Jupyter widgets HTML manager. You then need to include the manager state in a...
Read more >Jupyter Notebook: Little-Known Tricks! | by Greg Werner
Internal hyperlinks, i.e. within the same notebook, can be implemented with a mixture of Markdown and HTML. Just add the anchor to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think Yeh the main thing here is that the use of html_extra_path , is not really its intended purpose: “A list of paths that contain extra files not directly related to the documentation”, i.e. you can’t link to them or have any other sphinx integration
I could do that when I get the feeling the Jupyter Book is a viable option for my collection of notebooks. Still encountering potential show stoppers.