panel icon indicating copy to clipboard operation
panel copied to clipboard

Add panel-lite-editor

Open MarcSkovMadsen opened this issue 7 months ago • 2 comments

Implements #5768. In #5769 I made a lot of experiments. I learned that to create a general panel-lite playground we need to

  • Use an iframe with pyodide loaded once
  • Create the html template from the code on the fly to support js extensions and templates

Video

https://github.com/holoviz/panel/assets/42288570/9233d654-0785-4207-a071-442a42f41171

Resources

MarcSkovMadsen avatar Nov 05 '23 14:11 MarcSkovMadsen

Codecov Report

Merging #5812 (ae5bbbd) into main (0169933) will increase coverage by 9.98%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5812      +/-   ##
==========================================
+ Coverage   72.37%   82.35%   +9.98%     
==========================================
  Files         290      290              
  Lines       42235    42235              
==========================================
+ Hits        30566    34783    +4217     
+ Misses      11669     7452    -4217     
Flag Coverage Δ
ui-tests 38.35% <ø> (?)
unitexamples-tests 72.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 71 files with indirect coverage changes

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

codecov[bot] avatar Nov 06 '23 19:11 codecov[bot]

Looking at the numpy web page. The below might be a simple solution if we enable easily copy-pasting code from a gallery?

image

MarcSkovMadsen avatar Jan 20 '24 06:01 MarcSkovMadsen

Like it! But would it not need to support some form of Intellisense to be easier to use?

As for code <-> output, @ahuang11 made a great example with code-editor + Panel / Holoviz + AI that does something similar. Would that be of use?

Coderambling avatar Mar 11 '24 19:03 Coderambling