jupyter4science / scipy2024-jupyter-widgets-tutorial Goto Github PK
View Code? Open in Web Editor NEWSciPy2024 Tutorial on "Building Complex Web Applications with Jupyter Notebooks"
License: Apache License 2.0
SciPy2024 Tutorial on "Building Complex Web Applications with Jupyter Notebooks"
License: Apache License 2.0
This is not a high priority but if there is time I'd like to replace the uses of os.path
in the notebooks with pathlib
instead. I've found pathlib
easier to work with, and you get the /
operator for combining path names.
TLDR: I don't think it's possible to use server-side widgets using Jupyter Notebooks and Quarto. It may be possible to render basic widgets in a .qmd document instead, though there is confusion about which Jupyter widgets actually will work.
In the documentation, it appears that this should be possible
"Jupyter Widgets and htmlwidgets ... run entirely client-side so can be deployed within normal static HTML documents.
There are several issues that suggest that this documentation is somewhat misleading.
In quarto-dev/quarto-cli#6496, some people say that there is confusion because some, but not all of the client-side widgets seem to work. That point aside, the following working example was proposed:
---
format: html
---
```{python}
import ipywidgets as widgets
widgets.IntSlider()
```
and then calling the command quarto render example.qmd
and opening the resulting file, example.html
, in a browser tab.
This work for me as well when I put that code in a quarto markdown document (.qmd) only.
However, when I try the same example using a Jupyter Notebook, the code appears just the same, but the javascript widget doesn't appear.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.