Skip to main content

visualens

A visual, fast interface to explore and manipulate astronomical images, catalogs, and lens models created using Lenstool.

visualens uses PyQt for fast handling of large astronomical images. Main lensing functionalities include:

  • An interactive interface to create Lenstool input files and visualize and manipulate lens models,
  • Fast, easy-to-run lensing calculations using Lenstool's engine,
  • Visual forward modeling based on lenstronomy.

Installation:

Many visualens functions rely on Lenstool, which is easy to install through conda (highly recommended). We also recommend installing lenstronomy through conda rather than pip, before installing visualens.

Some IDEs like Spyder may cause conflicts with PyQt. We suggest installing your favorite IDE in your conda virtual environment before installing visualens.

Installation steps:

conda create -n visualens_env -c conda-forge lenstool astropy matplotlib ipykernel ipywidgets ipyevents lenstronomy python==3.12.15
conda activate visualens_env
pip install visualens

Starting guide:

If using Jupyter notebooks, run these lines in your first cell:

%gui qt5
from PyQt5.QtWidgets import QApplication
import sys
app = QApplication.instance()
if app is None:
    app = QApplication(sys.argv)

Then

from visualens import Visualens
vl = Visualens()

A window should open, with a side panel accessible by clicking the top left button. Click "Open..." under the Image, Catalog, or Lens model tab to get started.

More examples here: https://github.com/tomresseguier/visualens/tree/main/examples

Metadata

Release files for visualens 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visualens 1.0.4
File Size Uploaded Provenance
visualens-1.0.4.tar.gz 156.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for visualens 1.0.4
File Interpreter ABI Platform
visualens-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 330.6 kB

Release files / visualens-1.0.4.tar.gz

Download URL visualens-1.0.4.tar.gz
Size 156.6 kB
Tags Source
SHA-256 checksum
How to use checksums
29d72cd6542d6d4dcd54f81d77ad043a4d0d99187ba85c2cac919c76c3846713
BLAKE2b-256 checksum
How to use checksums
75f4c8bba938206e6ba6be36653741b26e3b4f868faa93e1510ff1074e6d8667
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / visualens-1.0.4-py3-none-any.whl

Download URL visualens-1.0.4-py3-none-any.whl
Size 174.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2ca68f1a46d560a0e6bb3817b8b3fcb8b5e6abcac5b3e0ceb6898e821d97e16
BLAKE2b-256 checksum
How to use checksums
75530e5f2220f885955796b1e054a506e3b300d6e1d5352c01a0eae41c17b8e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for visualens 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page