Introduction
Remote data preview refers to the ability to view data that is stored in a remote location without having to download or transfer the entire dataset to a local machine. In general, there are two main approaches for remote data preview:
- using Graphical Interfaces (GUI), including:
- web-based interfaces:
Many cloud-based platforms and data storage systems offer web-based interfaces that allow users to preview data stored remotely through a web browser. These interfaces may include visualizations, charts, or other tools for exploring the data in real-time.
…from the web-based Open OnDemand (OOD) connection to HPC - remote desktop
Users can remotely access a desktop or computer that is physically located where the data is stored, allowing them to work with the data as if it were stored locally. This requires a stable internet connection and may require additional software or configs. - virtual machines:
Some cloud-based platforms offer virtual machines that allow users to access and interact with data stored remotely through a virtual desktop. This can be especially useful for users who need to work with large datasets or complex analysis tools that require significant processing power.
- web-based interfaces:
- using Command Line Interfaces (CLI), including:
- Viewing text files using UNIX commands on a remote machine
- Viewing PDF files using X11 SSH connection
- Viewing graphic files on remote machine as the ASCII art in the terminal
- Mounting remote folder on local machine using SSH connection
This section will focus on command line approaches for previewing remote data, as they are universally applicable and reliable for accessing data stored across a variety of High-Performance Computing (HPC) systems. We encourage readers to explore these command line approaches by participating in hands-on tutorials listed in the Further Reading section.
Why it’s good to preview remotely?
Command line approaches for previewing remote data can be especially useful for users in scientific fields, where large datasets are common, and access to High-Performance Computing (HPC) systems is necessary. Remote viewing offers significant advantages in terms of speed, efficiency, and security. Here are some examples of cases where using command line approaches for previewing data stored remotely can be practical:
-
Previewing PDF files
In scientific research, it’s common to generate reports, publications, and other documents in PDF format. Command line approaches like X11 SSH connection allow users to preview PDF files remotely without downloading or transferring them to a local machine.
…from the tutorial . - Previewing graphic files
Graphics are often used in scientific research, including charts, graphs, and images. Command line approaches like mounting a remote folder usingsshfs
allow users to view graphic files remotely without downloading or transferring them to a local machine.
-
Quick view to find information needed
When working on remote HPC systems, it can be challenging to find the specific information needed quickly. Command line approaches allow users to preview the data and code and use text processing tools to quickly search and extract relevant information. -
Distant collaboration
When collaborating with colleagues in remote locations, it can be difficult to share and access data. Command line approaches allow users to preview data stored remotely and collaborate in real-time on the same data copy. -
Exploring large datasets
When working with large datasets, downloading or transferring the entire dataset to a local machine for analysis can be impractical or impossible. Command line approaches allow users to quickly preview and explore the data without downloading or transfer of the entire dataset. -
Working with sensitive data
Some datasets may be sensitive and cannot be transferred or downloaded to a local machine. Command line approaches allow users to access and preview the data remotely. - Viewing remote logs or error messages
When running jobs on HPC systems, you may want to review job status, issues, or error messages remotely to troubleshoot issues or resubmit the task.