-
Notifications
You must be signed in to change notification settings - Fork 204
Add interactive playground for users to try rustworkx #1451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 109 commits
00eaf75
576a886
1a15354
13cec34
e7d69d6
90112c6
d569676
fd814cb
ec03072
caf72e6
ae29d4a
8b5532e
51baa2e
a9fde4f
b8e2efe
5f52826
24334f2
7205151
df87b8f
af22a8e
91ee307
2f28c9e
7cf5e4b
ca2263d
349f34b
b0eb530
3c67cdb
3177208
d3c3d1e
93fc909
9749294
9cd1112
bbd37bc
91f5f10
87305de
f8e97dd
c85ed90
a49906a
cd3849e
d0e79da
3009010
49df6ad
23d306e
1041709
6ac2a82
6e88243
8a894ad
bc17616
2040aa1
6979c6b
979849c
de999e1
318f95e
6fd352e
03408bf
4cfa29c
112654b
5444392
e9a8cfe
03c42c7
dcb4010
51ddf4f
26002fb
dc0c0ff
b4b06fa
85694e2
3377305
e174a57
39fb357
2c48049
334f24b
57e5896
db87094
7cea72b
5279876
50be6e9
6c6f1af
28791ec
b4ce1f9
a041dd7
12caf51
673152a
0ea2f29
b345590
f8887f4
a54250d
688850f
531d98f
c9304d3
0ca6725
981fbf6
d9d5ad0
4437d3e
e4f1d82
5b6fe20
1a1ffda
20a4ecf
d5bce88
3e0d0c7
78cc79c
ab3b19c
b94c1f1
6eef9a2
2192fa3
a26a50a
36e3596
c3c9e59
cd6de91
7ac27f7
133fd9e
f9795a0
f3439b4
83717dc
6d8818d
e114f18
4dcd7ce
c9df385
3cba785
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,3 +25,5 @@ rustworkx-core/Cargo.lock | |
| **/.DS_Store | ||
| venv/ | ||
| .python-version | ||
| .jupyterlite.doit.db | ||
| docs/source/.cache | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "LiteBuildConfig": { | ||
| "no_sourcemaps": true, | ||
| "no_unused_shared_packages": true, | ||
| "apps": ["repl"] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| .. _rustworkx_playground: | ||
|
|
||
| #################### | ||
| Rustworkx Playground | ||
| #################### | ||
|
|
||
| Welcome to the Rustworkx Playground! This is an interactive environment where you can | ||
| experiment with Rustworkx on your browser. | ||
|
|
||
| .. replite:: | ||
| :kernel: python | ||
| :height: 600px | ||
| :prompt: Try it! | ||
| :prompt_color: #6929c4 | ||
|
|
||
| import piplite | ||
| await piplite.install("rustworkx") | ||
|
|
||
| import rustworkx as rx | ||
| print(f"Rustworkx Playground with version: {rx.__version__}") | ||
|
|
||
| .. note:: | ||
| The `rustworkx` version in the playground is not always the latest. Verify the deployed | ||
| version with `rustworkx.__version__`. | ||
|
Comment on lines
+22
to
+24
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might have asked this before but is there a path to building the correct package as part of the docs build? It's not like a rustworkx build takes us that long and we already do it a bunch in CI. So we could then have different versions bundled for each docs build so it always matches. Looking at the recipe you contributed to pyodide: https://github.com/pyodide/pyodide-recipes/blob/main/packages/rustworkx/meta.yaml it doesn't seem too complicated.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, I think the path to have the latest commit from
I think the biggest blockers are that #1449 uses Rust nightly (well, not quite but |
||
|
|
||
| .. note:: | ||
| The `rustworkx` version in the playground experimental. If you find any issues, please | ||
| report them at https://github.com/Qiskit/rustworkx/issues. | ||
IvanIsCoding marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.