Replies: 12 comments
-
Hi @deeplook, you can insert the embed code in your Jupyter notebook and insert the asciinema cast directly in your Jupyter Notebook
The magical function See this video: https://www.useloom.com/share/e606957f1aa0431399c30c1b95cb5207 |
Beta Was this translation helpful? Give feedback.
-
@zodiacfireworks Thanks! It's surely wonderful to be able to run remote screencasts hosted on asciinema.org. Rereading my question I admit it's not so evident, but I thought more of running a local screencast either in a "normal" Jupyter cell with asciinama-player. I had tried using asciinama-player on local casts, but in vain. Doing this with the familiar asciinama-player interface for local files would be very nice, too. But, ermmm... I've just tried the most unlikely thing to do, and to my big surprise this works! I've simply typed |
Beta Was this translation helpful? Give feedback.
-
Should we close it then? ;) |
Beta Was this translation helpful? Give feedback.
-
We could if there would also be a well-defined way of adding the asciinema-player bits to Jupyter to make it run local casts, too. I've tried that at the beginning, but no luck. |
Beta Was this translation helpful? Give feedback.
-
Ah, so we're talking 3 ways of embedding the player here:
I think first 2 have been solved already, right? @deeplook you refering to 3.? |
Beta Was this translation helpful? Give feedback.
-
@sickill Correct. I assume that (2) would also work for any other site which has asciinema-player installed. |
Beta Was this translation helpful? Give feedback.
-
It would actually help to catch-up with TermRecord, where I can simple point to a self-contained HTML file, like shown here:
|
Beta Was this translation helpful? Give feedback.
-
Does TermRecord's file contain everything inline? Just single html file with no js/data files? |
Beta Was this translation helpful? Give feedback.
-
I have no clue, as it's just something friends have told me about. One must assume the HTML contains JS/CSS... |
Beta Was this translation helpful? Give feedback.
-
I assume it would be easy to add an option to asciinema-player to generate self-contained HTML blobs, including CSS/JS and the data. |
Beta Was this translation helpful? Give feedback.
-
I wonder how much effort it would be to play casts directly inside Jupyter cells? This might need wrapping the text output in some thin HTML envelope, but maybe that's not even needed.
I've raised an issue originally on asciinema-player here: asciinema/asciinema-player#85, but maybe here is a good place, too, if we could show casts directly without the whole asciinema-player machinary.
Beta Was this translation helpful? Give feedback.
All reactions