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.

  • choice(question: str, choices: int, *, multiple: bool = False, percent: bool = False, once: bool = False) -> IFrame
  • yes_no(question: str, *, percent: bool = False, once: bool = False) -> IFrame
  • cloud(question: str, *, keep: bool = False, live: bool = False, wait: int = 60) -> IFrame
  • 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 provide.
  • 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(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_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 poll_iframe_args and 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.1.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.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_vote-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 8e3c014db3bb671e347cfcc92b8dff4cbe7b6632d86eecbf368044d4ce3aa8ee
MD5 0b9015ba53929a8bccc8d551018ab8ab
BLAKE2b-256 f83772291818c395941cf925164b73197bb9837578139ff66552476b957b4be4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyter_vote-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ee418e1444134da68e67e0739665c06460d2708b886f94089e3d48d5153b3c8
MD5 3719de5851d3cdec587f4b7d0866181f
BLAKE2b-256 2d502597c43d172dafad92a4618f9ba3d5493e13b39cddbfd9437797198d317a

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