Installation
Detailed installation instructions for all supported platforms.
Prerequisites
Before you begin, create a free account at app.gofigr.io/register.
Python
Requirements
Python 3.8 or higher
pip
Install via pip
pip install gofigrThis installs both the client library and the IPython extension (compatible with Jupyter, VSCode, and others).
Configuration
After installation, run the gfconfig command-line tool:
gfconfigThis 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:
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:
Run
gfconfigagain to update your credentialsCheck that your API key is valid in the GoFigr web app
Verify environment variables if using them
Connection Issues
Verify you can reach
https://api.gofigr.ioCheck firewall settings if on a corporate network
For enterprise installations, ensure
GF_URLis set correctly
For more help, visit gofigr.io/support.
Last updated