Skip to main content

Jupyter magic to post content of cells to postcell.io

Project description

Real-time Jupyter Code Feedback (beta software)

This project provides a magic command to users of Jupyter Notebook.

The contents of a cell are sent to a remote server at the time of cell execution. This allows teachers in a class to mark certain cells with %postcell magic command and view how their students are performing those exercises in real-time. Instructors can sign up for this service at https://postcell.io

Pre-requisites

This utility is designed to work within Jupyter notebooks.

Installation

pip install postcell

Usage

Since contents of a cell are sent to a remote server, do the following to set up the server:

  1. Go to https://postcell.io to create an account
  2. Create a new class and click Sample config to get configuration information
  3. Create a file called postcell.conf in your project directory and paste the contents of the sample config dialog box. Here is an example:
{
"url" : "https://postcell.io/post_cell",
"student_id" : "TEST_USER",
"instructor_id": "INSTRUCTOR_ID_GENERATED_BY_THE_PROCESS_ABOVE",
"class_id": "PythonForPoets",
"should_send_to_server" : true
}

Load and register the newly created class

%reload_ext postcell
%postcell register

The register command will automatically look for postcell.conf in the directory containing your notebook, or any of the parent directories.

You can also give an explicit config file name as:

%postcell register -config C:\Users\...\custom_postcell.conf

If you prefer not to use a physical config file, you can pass in the following properties:

%postcell register -student_id STUDENT_USER_NAME -instructor_id INSTRUCTOR_ID -class_id python_intro

Submit code

Create a cell and give it an exercise name:

%%postcell TEST_EXERCISE1

1+1

Executing this cell will send the code to a server, where an instructor will be able to view submission in real-time. An instructor can monitor their students' progress, provide real-time feedback and even share the submission screen to show sudents how their classmates solve the same exercise.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

postcell-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file postcell-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: postcell-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for postcell-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 77983bac8bce1610565590b5b7e70d25e110e8bfaf8a4f49208cadd31c149fae
MD5 992826aad3872759818291d3e84aab4c
BLAKE2b-256 cc8f18e86493d59380e132b7821f08e80cf82bec5ab4547020a97d1af6b5d8b2

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