question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to embed internally-generated HTMLs into Jupyter notebook

See original GitHub issue

Is 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:open
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsewellcommented, Dec 12, 2020

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

0reactions
dirkroordacommented, Jan 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found