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.2.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.2.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_vote-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 a8fe9bdda013740d8d4838ef0b8c17bdb72f9dea1919c7a33542b459121b3f3a
MD5 232e180ff046a577c960dce377557aa9
BLAKE2b-256 2498b2755581f3a8918ee24b104557ccf71981635c70015a90741d29f7f63e5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyter_vote-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebfc1917f652c1d3f60ff346d7bc6cbebd7f1511bb8c5365f10c5ab07f49c784
MD5 97a4160f9b79b3670822b88d07243069
BLAKE2b-256 ad42f163c0e3bca3f783f6a56aebcce8488f2b9fe76cc5b8c0d94d77569b6a01

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