nteract / play

The code base for the nteract Play app
https://play.nteract.io/
BSD 3-Clause "New" or "Revised" License
13 stars 19 forks source link

Fix the hello-world example code #45

Open jpc opened 3 years ago

jpc commented 3 years ago

Running the initial example on the demo page gives a Children must be a list of VDOM objects or strings which is not a great first experience with the project ;)

Python lists of VDOM objects are neither VDOM objects nor strings so they trigger the error. If we splice the results of the fancy call into the h1 arguments list (so each list element becomes a separate argument to h1) then the code works correctly.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nteract/play/DoGfa9PRwXyr6XVieYAZbZDSvLbU
✅ Preview: https://play-git-fork-jpc-patch-1-nteract.vercel.app