-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aayush Badoni
authored and
Aayush Badoni
committed
Jun 3, 2024
1 parent
912c7df
commit aff0866
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,5 @@ Contenidos: | |
:maxdepth: 1 | ||
|
||
index_es | ||
index_en | ||
index_en | ||
pycomponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
============================== | ||
Interactive PyScript Component | ||
============================== | ||
|
||
A combined PoC of the PyScript Component with a an ehanced UI. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div style="padding: 20px 40px; background-color: #fcf8e3; border-radius: 5px"> | ||
<div> | ||
<iframe | ||
height="300px" | ||
width="100%" | ||
srcdoc=' | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" /> | ||
<script defer src="https://pyscript.net/latest/pyscript.js"></script> | ||
<style> | ||
.py-repl-run-button{opacity: 1;} | ||
.input-section{background-color: #f8f9fa; padding: 10px; border-bottom: 1px solid #ccc;} | ||
</style> | ||
</head> | ||
<body> | ||
<py-config> | ||
packages = ["numpy", "pandas", "matplotlib"] | ||
terminal = false | ||
</py-config> | ||
<div class="input-section"> | ||
<py-repl> | ||
print("Hello, World!") | ||
</py-repl> | ||
</div> | ||
</body> | ||
</html>' | ||
style="border: 1px solid #ccc; background-color: #fff" | ||
> | ||
</iframe> | ||
</div> | ||
</div> |