{"id":16275565,"url":"https://github.com/andrie/shiny-python-workshop-newcastle","last_synced_at":"2026-02-19T19:32:01.354Z","repository":{"id":198432758,"uuid":"700880846","full_name":"andrie/shiny-python-workshop-newcastle","owner":"andrie","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-02T19:13:04.000Z","size":59165,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T17:12:31.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://andrie.github.io/shiny-python-workshop-newcastle/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-05T13:31:07.000Z","updated_at":"2024-06-02T19:09:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"130432ad-14d0-4c5c-bdb9-26e10daabe04","html_url":"https://github.com/andrie/shiny-python-workshop-newcastle","commit_stats":null,"previous_names":["andrie/shiny-python-workshop-newcastle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrie/shiny-python-workshop-newcastle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2Fshiny-python-workshop-newcastle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2Fshiny-python-workshop-newcastle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2Fshiny-python-workshop-newcastle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2Fshiny-python-workshop-newcastle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrie","download_url":"https://codeload.github.com/andrie/shiny-python-workshop-newcastle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrie%2Fshiny-python-workshop-newcastle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29628782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T18:35:26.118Z","updated_at":"2026-02-19T19:32:01.337Z","avatar_url":"https://github.com/andrie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shiny-python-workshop-2023\n\nThis is the repository for the Shiny for Python workshop at Shiny in Production, Newcastle, 2023.\n\n\n## For students\n\nIf you're a student, please visit the course pages at https://github.com/andrie/shiny-python-workshop-newcastle\n\n## Installation - for instructors only\n\nNote: These instructions are to build the website locally, and is should only be necessary if you want to teach this class.\n\nYou will need to install a few things to render the website locally:\n\n1) [Install quarto](https://quarto.org/docs/get-started/)\n\n2) Install the shinylive python package `pip install shinylive --upgrade`\n\n3) Install the shinylive quarto materials `quarto add quarto-ext/shinylive`\n\n### How to edit the materials\n\nThis is a quarto website, so to make changes to the course text modify the `.qmd` files, or the `_quarto.yml`.\n\nTo do a live preview run `quarto preview --render html`, note that while `--render html` is a bit slower, it's the best way to see changes with the included applications. \n\n### Creating an including Shiny Apps\n\nAll of the apps live in the `apps` folder, which means that you can use VS Code to edit and test them out. \n\nTo include an application insert an `asis` quarto chunk which looks like this:\n\n`````` python\n```{python}\n##| echo: false\n##| output: asis\n\ninclude_shiny_folder(\"apps/basic-app\")\n```\n``````\n\nYou can also pass options to this function to modify the behaviour of the included app. \n\nTo include a set of problem tabs, your app should have two application files. `app.py` which shows the starting point for the problem and `app-solution.py` which shows the target application. \n\nYou can then use the `problem_tabs` function to include the tabs.\n\n`````` python\n```{python}\n##| echo: false\n##| output: asis\n\nproblem_tabs(\"apps/basic-app\")\n```\n```````\n\n### Inserting multiple choice questions\n\nYou can insert a shinylive app which displays sets of multiple choice questions by supplying a dictionary. \n\nIt is a good idea to always wrap this dictionary with the `Quiz` class which validates that it is the right format for the application.\n\n````` python\n```{python}\n## | echo: false\n## | output: asis\n\nfrom helpers import multiple_choice_app, Quiz\n\nquestions = Quiz(\n    {\n        \"What ui input is used for plots?\": {\n            \"choices\": [\"ui.input_plot\", \"ui.plot_input\", \"ui.plotInput\"],\n            \"answer\": \"ui.Input_plot\",\n        },\n        \"How do you remove a reactive link??\": {\n            \"choices\": [\"reactive.isolate\", \"req\", \"reactive.Effect\"],\n            \"answer\": \"reactive.isolate\",\n        },\n        \"What should you use to save an image of a plot to disk?\": {\n            \"choices\": [\"reactive.Calc\", \"@ui.output_plot\", \"reactive.Effect\"],\n            \"answer\": \"reactive.Effect\",\n        },\n    }\n)\n\nmultiple_choice_app(questions)\n```\n``````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrie%2Fshiny-python-workshop-newcastle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrie%2Fshiny-python-workshop-newcastle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrie%2Fshiny-python-workshop-newcastle/lists"}