{% extends 'uhepp_vault/base.html' %} {% load pygmentify_tags %} {% block content %}

{{ collection.title }}

{% if collection.owner.pk == user.pk %}

edit delete

{% endif %}

Collection-ID: {{ collection.id }}

Owner: {{ collection.owner.username }}

{{ collection.description }}

{% if collection.plots.all.count %} {% else %}

This collection is empty

{% endif %}

API access

Make sure you've set up an API access token.

Pull collection

{% pygmentify %}
import uhepp
plots = uhepp.pull_collection({{ collection.pk }})
{% endpygmentify %}

Push new plot

{% pygmentify %}
import uhepp
# Create a histogram or retrieve one from a location file
hist = uhepp.from_json("local_file.json")
hist.push({{ collection.pk }})
{% endpygmentify %} {% endblock %}