Installation

Detailed installation instructions for all supported platforms.

Prerequisites

Before you begin, create a free account at app.gofigr.io/registerarrow-up-right.


Python

Requirements

  • Python 3.8 or higher

  • pip

Install via pip

pip install gofigr

This installs both the client library and the IPython extension (compatible with Jupyter, VSCode, and others).

Configuration

After installation, run the gfconfig command-line tool:

gfconfig

This will prompt you for your credentials and save them to ~/.gofigr.

For advanced options (custom API URL, auto-publish settings, default metadata):

Jupyter Usage

The simplest way to use GoFigr in Jupyter is to load the extension:

That's it! All figures you create will be automatically published.

For custom configuration:

Script Usage

For standalone Python scripts, use the Publisher class:

Environment Variables

Instead of using gfconfig, you can set environment variables:

Variable
Description

GF_USERNAME

Your GoFigr username

GF_PASSWORD

Your GoFigr password

GF_API_KEY

Your API key (alternative to username/password)

GF_WORKSPACE

Workspace API ID

GF_ANALYSIS

Analysis API ID

GF_URL

API URL (default: https://api.gofigr.io)

GF_AUTO_PUBLISH

true or false


R

Requirements

  • R 4.0 or higher (tested with R 4.3.2)

Install from CRAN

Install from GitHub (Development Version)

For the latest development version:

Configuration

On the R prompt, load the package and run the configuration wizard:

This will prompt you for your credentials and save them to ~/.gofigr.

R Markdown Usage

In your setup chunk, enable GoFigr:

You can optionally specify an analysis name:

Publishing Plots

Use the publish() function to capture figures:

For base R graphics, wrap the plotting code:

Shiny Integration

Replace plotOutput + renderPlot with gfPlot + gfPlotServer:


Configuration File

Both Python and R store configuration in ~/.gofigr. This file is created automatically by the gfconfig command/function.


Troubleshooting

Authentication Errors

If you get authentication errors:

  1. Run gfconfig again to update your credentials

  2. Check that your API key is valid in the GoFigr web app

  3. Verify environment variables if using them

Connection Issues

  • Verify you can reach https://api.gofigr.io

  • Check firewall settings if on a corporate network

  • For enterprise installations, ensure GF_URL is set correctly

For more help, visit gofigr.io/supportarrow-up-right.

Last updated