-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add docs explaining the build and packaging process #10
Comments
It ships sucrase, but it’s all happening in the frontend. You can build on
top of ipyreact, but no bundle in created at any point. It’s only the
ipyreact bundle, and the js you put into it.
You could generate a single esm/bundle with react external as well. I think
esbuild can do that.
On Tue, 25 Apr 2023 at 18:43, Paddy Mullen ***@***.***> wrote:
I don't think ipyreact ships the build toolchain(sucrase, tsc ...?) along
with it when it is packaged into a whl, but that itsn't clear from the docs.
What happens when a package built on top of ipyreact is packaged into a
whl?
I would hope that it produces a single bundled js artifact.
—
Reply to this email directly, view it on GitHub
<#10>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPEPNTKQ3FLYEAATCL5GTXC75J7ANCNFSM6AAAAAAXLINYYQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Maarten Breddels
Co-Founder of Widgetti <https://widgetti.io/>
Your partner for Jupyter- and data-apps
Tel: +31 6 2464 0838 <+31+6+24640838>
[image: Twitter] <https://twitter.com/maartenbreddels>[image: Github]
<https://github.com/maartenbreddels>[image: LinkedIn]
<https://linkedin.com/in/maartenbreddels>
|
Maybe this is not fully answered yet, reopened. |
I just published the first widget to pypi. it works for me locally and on binder 🎉
from tldraw import TldrawWidget import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(6, 2))
ax.plot([1,2], [10,20], c = "orange");
plt.close()
TldrawWidget(my_figure=fig) However, in JupyterLite it throws an error :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think ipyreact ships the build toolchain(sucrase, tsc ...?) along with it when it is packaged into a whl, but that itsn't clear from the docs.
What happens when a package built on top of ipyreact is packaged into a whl?
I would hope that it produces a single bundled js artifact.
The text was updated successfully, but these errors were encountered: