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) -> IFrameyes_no(question: str, *, percent: bool = False, once: bool = False) -> IFramecloud(question: str, *, keep: bool = False, live: bool = False, wait: int = 60) -> IFramelist(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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e3c014db3bb671e347cfcc92b8dff4cbe7b6632d86eecbf368044d4ce3aa8ee
|
|
| MD5 |
0b9015ba53929a8bccc8d551018ab8ab
|
|
| BLAKE2b-256 |
f83772291818c395941cf925164b73197bb9837578139ff66552476b957b4be4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ee418e1444134da68e67e0739665c06460d2708b886f94089e3d48d5153b3c8
|
|
| MD5 |
3719de5851d3cdec587f4b7d0866181f
|
|
| BLAKE2b-256 |
2d502597c43d172dafad92a4618f9ba3d5493e13b39cddbfd9437797198d317a
|