Code Monkey home page Code Monkey logo

prolific-scripting's Introduction

Managing Prolific Studies with Jupyter Notebook

The notebook study-management.ipynb demonstrates how Prolific's API can be used to create and manage a stratified study.

A minimal API for Prolific and Qualtrics is implemented in the file APIs.py. Both APIs require API keys, they can set via environment variables or in the file .env. See .env.default for details.

Setup

This project uses Jupyter Notebooks. To reduce the dependencies, this repository does not depend on notebook locally, but instead relies on a globally installed Jupyter Notebook installation. If you do not want to install Jupyter Notebook globally, see the alternative instructions below. You can skip steps 1-3 if you already have Jupyter Notebook installed.

  1. Install python 3.11 (other versions will probably also work)
  2. Install pipx
  3. Install notebook in pipx (pipx install notebook)
  4. Install pipenv in pipx (pipx install pipenv)
  5. Make the pipenv kernel available to your notebook installation pipenv run python -m ipykernel install --name prolific-scripting --user (or automate this process for all pipenv kernels)
  6. Clone repo (git clone <repo>)
  7. Install dependencies (pipenv install)
  8. Run jupyter-notebook

Alternative setup

  1. Install python 3.11
  2. Install pipenv (pip install --user pipenv)
  3. Clone repo (git clone repo)
  4. Install dependencies (pipenv install)
  5. Add Jupyter Notebook to local dependencies (pipenv install notebook)
  6. Run pipenv run jupyter-notebook
  7. Please do not commit the updated Pipfile with the notebook dependency

prolific-scripting's People

Contributors

watercrossing avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.