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.

Support `.dib` notebook rendering in GitHub

See original GitHub issue

Is your feature request related to a problem? Please describe. When creating .NET Interactive notebooks with the .dib file format, I would like to upload the notebooks to GitHub and/or GitHub Gist to share direct links to or embed in webpages.

Describe the solution you’d like I would like the .dib format to render in the browser just as .ipynb notebooks render. This Gist contains the same content in .dib and .ipynb formats, and only the latter renders.

The major benefit of the render is that Gists can be easily embedded, such as in blogs, and .ipynb notebooks are still rendered when embedded.

Describe alternatives you’ve considered Convert the .dib format notebooks to the .ipynb format. However, I prefer the .dib format since the raw format is much more concise and readable. I also prefer not having the Python association in my notebook file names. 🙂

A related discussion thread is https://github.com/dotnet/interactive/issues/467, but I thought it would be good having a separate issue tracking this. It isn’t clear to me how one gets custom file formats to render on GitHub. From my searching, it appears that GitHub doesn’t expose a public method to do this and needs to implement the rendering themselves. Maybe the .NET Interactive team would have to collaborate with the GitHub team on that internally?

The only documents I found were:

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:5
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bmitccommented, Mar 13, 2023

That is really too bad. Is there any way that GitHub opens up the possibility for someone to help implement it for them?

I consider this a major feature for Microsoft’s Polyglot Notebooks. *.ipynb notebooks are ill-suited for source-code control, but they get rendered in GitHub. *.dib notebooks are great for source-code control but do not render in GitHub. It’s often better to just throw out caring about how much *.ipynb notebooks pollute source-code control since the feature of being rendered in GitHub is fantastic for linking others to a notebook.

1reaction
ScottArbeitcommented, Feb 27, 2023

@xperiandri Trying to find the right team internally to comment. 99% sure GitHub has to write that code, can’t be done by a third-party.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support `.dib` notebook rendering in GitHub (code previews)
I would like the .dib format to render in the browser just as .ipynb notebooks render. This Gist contains the same content in...
Read more >
File format in the .NET Interactive VS Code extension ...
The primary reason for the experimental file format supported by . ... Support .dib notebook rendering in GitHub #2209.
Read more >
Jupyter notebook not rendering in github · Issue #3035
I'm having an issue with this specific notebook where it doesn't render at all in github. I get the message "Sorry, something went...
Read more >
dib is already a registered file extension in Windows #1491
Also on GitHub README.ipynb is rendered nicely but README.dib not. I don't think it's a good idea to use an extension that is...
Read more >
interactive/docs/FAQ.md at main · dotnet/interactive
NET Interactive engine to provide a terminal-based REPL supporting the same general features that you can find in Polyglot Notebooks, including support for ......
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