Dataverse: Explore button for Binder

Created on 9 Apr 2020  路  3Comments  路  Source: IQSS/dataverse

So far the Explore button in DV takes us to Whole Tale:

image

It would be good to discuss adding Binder also. This is already possible on their side, as one can explore Dataverse datasets with a DOI. See here: https://mybinder.org and in picture:

image

Most helpful comment

A work around is to add a "launch binder" button to the description of your dataset

Or you can try this External Tool definition:

{
  "displayName": "Binder",
  "description": "Run on Binder",
  "scope": "dataset",
  "type": "explore",
  "toolUrl": "https://girder.hub.yt/api/v1/ythub/dataverse",
  "toolParameters": {
    "queryParameters": [
      {   
        "datasetPid": "{datasetPid}"
      },  
      {   
        "siteUrl": "{siteUrl}"
      },  
      {   
        "key": "{apiToken}"
      }   
    ]   
  }
}

All 3 comments

In order to support an "Explore" button for Binder, we'd need to make the Dataverse "external tool" framework more flexible in the URLs it can construct.

For example, the Explore button would need to be able to send users to URLs such as https://mybinder.org/v2/dataverse/10.7910/DVN/TJCLKP/ with parts of the DOI in the "path" of the URL.

Here's that URL again in context:

Screen Shot 2020-04-09 at 4 57 26 PM

A work around is to add a "launch binder" button to the description of your dataset like this:

Binder

A work around is to add a "launch binder" button to the description of your dataset

Or you can try this External Tool definition:

{
  "displayName": "Binder",
  "description": "Run on Binder",
  "scope": "dataset",
  "type": "explore",
  "toolUrl": "https://girder.hub.yt/api/v1/ythub/dataverse",
  "toolParameters": {
    "queryParameters": [
      {   
        "datasetPid": "{datasetPid}"
      },  
      {   
        "siteUrl": "{siteUrl}"
      },  
      {   
        "key": "{apiToken}"
      }   
    ]   
  }
}

@Xarthisius works great! Thanks! If anyone out there wants to add "Binder" under "Explore" at the dataset level, this should do the trick. Just put the JSON in a file and follow http://guides.dataverse.org/en/4.20/admin/external-tools.html#adding-external-tools-to-dataverse

The only limitation is that the DOI for the dataset needs to be real.

Was this page helpful?
0 / 5 - 0 ratings