Skip to main content

EduVote integration for Jupyter notebooks

Project description

Jupyter Vote

Jupyter vote is a simple eduVote integration for Jupyter notebooks using IFrames.

Creating Polls

EduVote offers four types of polls, which can be created using the following methods. The parameters to these methods map directly to the query parameters of the poll URL which in turn directly configure the poll. The methods return an IFrame so it should be the last line in a cell, or the output needs to be explicitly displayed with display.

  • vote.choice(question: str, choices: int, *, multiple: bool = False, percent: bool = False, once: bool = False) -> IFrame
  • vote.yes_no(question: str, *, percent: bool = False, once: bool = False) -> IFrame
  • vote.cloud(question: str, *, keep: bool = False, live: bool = False, wait: int = 60) -> IFrame
  • vote.list(question: str, *, keep: bool = False, live: bool = False, wait: int = 60) -> IFrame

Parameters:

  • question: The question to be asked in the poll.
  • choices: The number of choices to be provided.
  • multiple: Whether multiple choices can be selected.
  • percent: Whether to show the results in percent as opposed to counts.
  • once: Whether the poll can only be answered once per device.
  • keep: Whether to keep the cloud or list from the previous poll.
  • live: Whether to show the results immediately or only after a manual reveal.
  • wait: The time in seconds to wait before a device can submit another answer.

Voting

The interface for voting can be displayed using the vote.vote(id: str = None) -> IFrame method. The id parameter is optional and can be used to specify the teacher ID. If no ID is provided, the function attempts to use the ID stored in module level variable vote.vote_id.

Notes

The first time a poll is made, the credentials need to be entered in the EduVote interface. The credentials can be saved and should persist even between sessions.

The size of the IFrames can be adjusted by changing the vote.poll_iframe_args and vote.vote_iframe_args dictionaries which are passed directly to the IFrame constructor.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_vote-0.3.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_vote-0.3.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_vote-0.3.0.tar.gz.

File metadata

  • Download URL: jupyter_vote-0.3.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.9 Windows/10

File hashes

Hashes for jupyter_vote-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2a899ab307d76e5868ec882e00cda23ba11d0bb37b3ac717b0cc62bfac519943
MD5 2e2aeea1c471856fe3ec50406fa29ca4
BLAKE2b-256 30cb51fa71b543b1a2a9a7c35002237f99de519251bdc3a108da7412980378a5

See more details on using hashes here.

File details

Details for the file jupyter_vote-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: jupyter_vote-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.9 Windows/10

File hashes

Hashes for jupyter_vote-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e712f59f9648902b102b3c58bfbb6dbb229ee46ed6058249f8cc0b2830cf5c9
MD5 015a53ae56efaf97fd7dee5c4a607c09
BLAKE2b-256 e670757b2be013df8e18c45a5671fae3b137f0a7d8ad44886b48242e14e2f340

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page