Creating and Using a Data Capsule Template

Data Capsule templates are intended for researchers, librarians, or any HTRC Analytics account holder to be able to share a DC (Data Capsule) setup with other HTRC users. 

What is a Customized Research Capsule template?

A template is a snapshot, or image, of a pre-existing Research Data Capsule that can be made accessible for other HTRC account holders to find and use. The template is created and set up by one HTRC user who has a Research Data Capsule they wish to share for educational or research purposes. This user downloads additional code libraries, software tools, worksets, and potentially any other data they can access from the internet when in Maintenance mode and that is not already available in HTRC’s Ubuntu virtual machine, then creates a template from this Capsule. See specific steps below.

Please note: at this time, templates cannot be used to share HT volumes between Capsules or derived data added to the Secure Volume when performing research in Secure mode.

Why would I want to create a template?

Perhaps you are responsible for leading workshops on text analysis platforms and would like to demonstrate a specific workflow within the Data Capsule environment for your attendees. With Customized Research Capsule templates, all attendees can find your public template and start from the same point in the Data Capsule environment.

The same could be done by instructors wishing to demonstrate the Data Capsule environment for a class lesson or assignment in a digital humanities course they are teaching. 

Templates allow HTRC users some customization control of a Data Capsule in use cases where multiple users require access to the same research environment setup.

Why would I want to use a template to create a Data Capsule?

If you are a student or workshop attendee who needs access to certain required data, tools, or Data Capsule setup for a tutorial, project, assignment, or activity, then having access to templates provides an easier option for creating the Data Capsule your instructor or workshop leader needs you to use, rather than creating the Data Capsule from scratch.

Think about it: you are in a workshop that is demonstrating how to perform sentiment analysis on a specific list of HathiTrust volumes. Instead of downloading the correct version of the tool your instructor requires, as well as gathering all the correct HathiTrust volume IDs, this is all preloaded for you in the template the instructor created. Simply locate the template under "All Templates," and create the Data Capsule you need.  

This could also be useful for researchers searching for a template that has a basic setup for research flows and tools you are interested in exploring or if you’re interested in reproducing research conducted within a Data Capsule that has already been published – no need to reinvent the wheel if the environment is primed to go. Search "All Templates" and read through their descriptions – click on the title of the template to read what customizations have been added by the template’s creator.

How can I create a template?

Log into your HTRC Analytics account.

Click Data Capsules in the top navigation bar, then select My Data Capsule Resources from the dropdown menu.


If you have a pre-existing Research Data Capsule in your list, select it by clicking on that Data Capsule's title. You will be taken to that Capsule’s information page.



If you need to set up your Data Capsule, click the start button and wait for it to be in an RUNNING state. Then use either the Connect via Terminal or Connect via Remote Desktop buttons to access your virtual machine. In Maintenance mode you have access to the internet, so use this connection to download the libraries and tools you need (you cannot download internet-based resources in Secure mode). See this page to know what already comes pre-installed on all Research Data Capsules.

If you do not have a pre-existing Research Data Capsule, read this page for creation steps. Remember: you can only create templates from Research Capsules, not Demo Capsules.

Once your Capsule is set up with all your tools and code libraries, stop your Data Capsule. Your Capsule MUST be in SHUTDOWN mode in order to create a template

Click the More Data Capsule Functions dropdown button and select Create a Template.


Fill in the form on the next page.



In order to make the template viewable to other users, you will need to select the “Make Public” checkbox at the bottom of the form (you can decide to make it public later, however, if you don’t want to make it public right away; in this case, don’t select this checkbox). Try to make your template easily identifiable to others who will be seeking out your template by providing a clear title and description, along with a succinct list of customizations. Click the Submit button when you are finished filling out the form.

After you have submitted your template form, you will be redirected to the templates list page. If you only would like to see your current list of templates, filter the template list to “My Templates.”

When you initially create a template, it will be in a CREATE_PENDING status. This means that the process of copying your template from the Data Capsule is happening. You will not be able to perform any functions with a template in this state, such as creating a Data Capsule with it or deleting it.


Once the template is fully copied, the status will change to ACTIVE. Now you can perform actions like creating a Data Capsule from the template, and delete or change the public/private status on your personal templates. 

Click on the title of the template to see the template information page. This page shows you the details of the template. Notice that this page also tells you if your template is in a CREATE_PENDING state or ACTIVE in the status field, as well as whether your template is public or private.



Back in the templates list, once your Capsule has a status of ACTIVE you can click on the blue Create a Data Capsule button, or you can delete the Capsule by clicking the trashcan icon.

You can also click back to the template information page, which also allows you to create a Data Capsule, or to change the public/private status of the template.


How can I create a Data Capsule from a template?

You can create a Data Capsule either from the template list page, or an individual template information page – both spaces provide buttons for accomplishing this task, and both take you to the same form for Data Capsule creation.



Clicking one of these buttons routes you to the Create a Research Capsule form with your template name pre-populated in the "HTRC Data Capsule Template" field. You will need to fill in the rest of the required fields of this form prior to submission. 

Click the Create Capsule button when ready to submit and you will see your new Data Capsule listed on your My Data Capsule Resources page.