PAWS

From Wikitech
Jump to navigation Jump to search
PAWS.svg

PAWS: A Web Shell (PAWS) is a Jupyter notebooks deployment that has been customized to make interacting with Wikimedia wikis easier. It allows users to create and share documents that contain live code, visualizations such as graphs, rich text, etc. The user created notebooks are a powerful tool that enables data analysis and scientific research, and also transforms the way in which programmers write code - by enabling an exploratory environment with a quick feedback loop, and a low barrier for entry through it's easy to use graphical interface.

Sign in with your wiki account and tada!

Usage

Mediawiki documentation
https://paws.wmflabs.org
Service
https://paws.wmflabs.org/paws/hub
Notebook public access
https://paws-public.wmflabs.org/paws-public/User:YOURUSERNAME/YOURNOTEBOOK.ipynb
Download a raw notebook file
https://paws-public.wmflabs.org/paws-public/User:YOURUSERNAME/YOURNOTEBOOK.ipynb?format=raw

Documentation

Use
  • Short introduction to PAWS, Notebooks and motivation: PAWS/Introduction
  • More technical details: mw:Manual:Pywikibot/PAWS
  • PAWS Cheatsheet by one user (e.g. about API and database access)
  • SWAP - aka PAWS-Internal, Wikimedia Foundation's internal JupyterHub deployment (for accessing private databases)
  • Python libraries can be utilized in a PAWS notebook. Add
    !pip install tensorflow
    
    in the beginning of the notebook to use the tensorflow library.
  • The Pywikibot library and scripts are located in /srv/paws, and are read-only. So when a user logs into PAWS, the Pywikibot is already available using the PATH and virtualenv.
Give feedback
Source code
Maintain


Old docs

See also