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 lenstronomy python==3.12.2
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.3

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.3
File Size Uploaded Provenance
visualens-1.0.3.tar.gz 154.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 327.2 kB

Release files / visualens-1.0.3.tar.gz

Download URL visualens-1.0.3.tar.gz
Size 154.5 kB
Tags Source
SHA-256 checksum
How to use checksums
34f1c60f1d55166b6efdf4de054cddd928e0167f66b8f63eb5243e82954ee0ac
BLAKE2b-256 checksum
How to use checksums
3cca038218ad6e2ad779e668edc03dfe880ad29073ecd1c78a3d9d32943d0bbb
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.3-py3-none-any.whl

Download URL visualens-1.0.3-py3-none-any.whl
Size 172.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b4d67171b6c48140fe322d4a3fc4ef23f6c27b7e9498bc9ece11c302a7ab3c5
BLAKE2b-256 checksum
How to use checksums
a0978320b008384ec486f866cac7417205209e15f21e018bb56474a94d73a558
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.3

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