Save Visualizations in HISE (Tutorial)
Last updated 2026-04-10Abbreviations Key
Human Immune System Explorer | ||
IDE | integrated development environment | |
UI | user interface |
At a Glance
With the HISE SDK, you can save two kinds of results—simple Plotly figures or full visualization apps—into a study, where you and your collaborators can reuse them as templates. This feature is in beta release.
Use
save_visualization()when you want to save a single Plotly figure.Use
save_visualization_app()when you want to upload and deploy an app that HISE builds using a visualization build template (for example, DeckGL or Dash).
Once saved, your visualization appears in the study’s Visualizations tab in the HISE Collaboration Space, so you can find and share it. If you have questions or need help, contact Support.
When to Use This Feature
Use this feature when you want to create a visualization in a HISE IDE and then save, deploy, or share it:
Share it with others by saving it directly into a study as a saved visualization.
Capture the code, environment, and inputs used to generate the visualization so others can reproduce or extend your work.
Then follow the path that matches your use case.
Path 1: Save a Plotly visualization with
save_visualization(). Use this path when you’ve already created a single Plotly figure (Python or R) that you want to save as a saved visualization in a study, and you don’t need a full app experience.Path 2: Save a visualization app with
save_visualization_app(). Use this path when your result is an interactive app (for example, DeckGL or Dash) that HISE builds and serves using a visualization build template.
NOTE
The terminology surrounding HISE visualizations can be a little confusing, so let's define some important terms:
Saved visualization
We use saved visualization to mean an asset you can open from the Visualizations link in the side navigation of your study.
![]()
Visualization build template
We use visualization build template to mean the configuration HISE applies to build and deploy your visualization app.
Instructions
Prepare your visualization in an IDE
Navigate to HISE, and use your organizational email address to sign in.
Open an IDE. For instructions, see Create Your First HISE IDE (Tutorial) .
To import
hisepy, enter the following code into a new cell in your IDE.
# Import the Python SDK to enable programmatic access to HISE functions
import hisepy as hp4. Load your data and generate a visualization, according to the needs of your study.
A. For simple visualizations, create a Plotly figure.
i. To make sure your code runs end to end in the IDE, run the following code in a new IDE cell:
fig.show()
ii. To save the visualization, store it in a Plotly figure object to pass in later, as shown in the following block:
fig = px.scatter(
x=[1, 2, 3, 4],
y=[10, 15, 13, 20],
title="Plotly example"
)
# Create scatter plot
# Define values on x axis
# Define values on y axis
# Set chart titleB. For complex visualizations, build an app (for example, a DeckGL app) in your IDE workspace (for example, /home/workspace).
Create and save a hero image
Each saved visualization in HISE includes a static image visible to users who are browsing among the saved visualizations.
From your IDE, export or otherwise save a PNG that represents your visualization (for example, a Plotly figure export or a screenshot of your app’s main view).
Save the image somewhere in your IDE workspace (for example,
/home/workspace), so the SDK can access it.
Path 1: Save a Plotly visualization As a starting point, you can use the sample Plotly notebooks in the IDE’s examples folder.
Import the HISE SDK module.
import hisepy as hpImport Plotly Express.
import plotly.express as pxConfirm and note the file path to this PNG. You’ll need this path later, when you make the SDK call to save the visualization.
fig.write_image("/home/workspace/example-plot.png")Call the SDK. Call
save_visualization()with its required and optional parameters. The SDK saves your Plotly figure into the selected study as a saved visualization. HISE links that saved visualization to the IDE run that produced it, including input data, code, and environment.hp.save_visualization(figure=fig, studyspaceid="12345678-1234-1234-1234-123456789abc",title="Example Plotly visualization",png_image="/home/workspace/example-plot.png")# SDK call# Plotly figure object# Study space ID# Descriptive title# Path of hero image
Path 2: Save a visualization app Use this path when you’ve built an app (for example, using DeckGL or Dash) and want HISE to build and deploy it using a visualization build template.
Note your file path. Place your app files and directories in a location HISE can package. You’ll pass in these file and directory paths to
save_visualization_app()./home/workspace/my-appInclude your app’s main entrypoint and any framework-specific files (for example, DeckGL,
package.json, server entry files).Any necessary configuration files or scripts for your app (for example,
requirements.txt, config scripts).Do not include large input data files. Instead, upload those separately to your study space for your app to use when you run it.
Capture your input file IDs. Before you call
save_visualization_app(), save your input data files in HISE, since the app must read from those files.If your app uses files already present in your study space, capture their file IDs from HISE and have them ready to pass in.
If your app uses files generated in the IDE that aren’t yet in HISE, upload them using the
upload_files()(Python) |uploadFiles()(R) SDK method, and wait until those files become available.Collect the file IDs you want to include in your app, and keep them in a list (for example
data_source_fileids()). You pass in these IDs to thedata_source_fileidsparameter.Select the data mount path. Choose a path (for example
/dataor/input) as the directory in which your input data is stored, so your app can read it at runtime. You pass in this path as thedata_mount_pathargument. If you forget the leading/, HISE adds it for you.Import the HISE SDK module.
import hisepy as hpCall the SDK. Call
save_visualization_app()with the required parameters:
hp.save_visualization_app( application_files=["/home/workspace/my-app/app.py", "/home/workspace/my-app/requirements.txt"], application_dirs=["/home/workspace/my-app/configs"], study_space_id="12345678-1234-1234-1234-123456789abc", title="Example visualization app", png_image="/home/workspace/example-app.png", data_mount_path="/data", data_source_file_ids=[ "9f6d7ab5-1c7b-4709-9455-3d8ffffbb6c8", "0fb06e51-74c4-46be-b92d-5e045232b2d9" ] ) |
List of app file paths App directories Study space ID Title (10+ characters) Image path (PNG) Where app reads data Input data IDs for files in HISE */ |
|---|
(Optional) If you already know which visualization build template you want to use (for example a specific DeckGL template version), you can also pass in the following additional parameters:
i. build_template_name
ii. build_template_major_version
iii. build_template_minor_version
iv. build_template_parameters /* A map of framework-specific arguments, such as app entrypoint paths, which must match the build variables for that visualization build template /
v. infer_build_template_arguments /* Parameter that tells HISE whether to infer framework-specific arguments from your files and directories if you don’t supply them directly */
The save_visualization_app() SDK then packages your app files, applies the selected visualization build template, and starts a build workflow to deploy your app. It also creates a saved visualization in your study that points to the deployed app.
Call the SDK
Review the saved visualization in HISE
Find the saved visualization, and share it with your team.
From the top navigation menu, click COLLABORATION SPACE.
![]()
Click the card that represents your study.
![]()
In the side navigation menu, click Visualizations.
![]()
Find the card that represents your saved visualization (the one with your hero image on it), and click to open it.
Review your saved Plotly figure or app-based visualization in Draft mode.
If you like, confirm the output with your collaborators. For instructions on adding collaborators to your study, see Work with Studies (Tutorial) . When you're satisfied with the saved visualization, mark it as Final.