# \#python

**URL:** https://www.rubin.community/tag/python/57.md

[Latest](https://www.rubin.community/latest.md) · [Categories](https://www.rubin.community/categories.md) · [Tags](https://www.rubin.community/tags.md)

---

## [Getting started tutorial python problems](https://www.rubin.community/t/getting-started-tutorial-python-problems/9693)

<div class="topic-metadata">

**Author:** [@VenIl](https://www.rubin.community/u/VenIl)\
**Replies:** 19\
**Last updated:** [January 15, 2025, 9:26pm UTC](https://www.rubin.community/t/getting-started-tutorial-python-problems/9693 "2025-01-15T21:26:12Z")

</div>

Hello, I’m trying to run Getting started tutorial part 3: displaying exposures and source tables output by single frame processing. While running one of python commands I get error message : AttributeError: module ‘lsst…

---

## [Getting started tutorial part 1: setting up the Butler data repository](https://www.rubin.community/t/getting-started-tutorial-part-1-setting-up-the-butler-data-repository/9611)

<div class="topic-metadata">

**Author:** [@VenIl](https://www.rubin.community/u/VenIl)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 10:03pm UTC](https://www.rubin.community/t/getting-started-tutorial-part-1-setting-up-the-butler-data-repository/9611 "2024-12-04T22:03:02Z")

</div>

Hello, I’m trying to run Getting started tutorial part 1: setting up the Butler data repository. However, after I run: from lsst.daf.butler import Butler import os repo\_path = os.path.join(os.environ\['RC2\_SUBSET\_DIR'\]…

---

## [Resources for Python beginners](https://www.rubin.community/t/resources-for-python-beginners/5975)

<div class="topic-metadata">

**Author:** [@MelissaGraham](https://www.rubin.community/u/MelissaGraham)\
**Replies:** 3\
**Last updated:** [April 6, 2022, 12:56am UTC](https://www.rubin.community/t/resources-for-python-beginners/5975 "2022-04-06T00:56:53Z")

</div>

The purpose of this topic is to allow DP0 delegates to share their favorite resources for learning to code with Python. Please reply in this thread with links to resources that you have found particularly useful for lear…

---

## [New test decorators for iteration](https://www.rubin.community/t/new-test-decorators-for-iteration/3935)

<div class="topic-metadata">

**Author:** [@price](https://www.rubin.community/u/price)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 5:30pm UTC](https://www.rubin.community/t/new-test-decorators-for-iteration/3935 "2019-11-19T17:30:02Z")

</div>

I have recently merged DM-22199, which provides class and method decorators for tests to provide iteration. The intent is to make it simple to extend unit tests to cover more cases. If you create the object being tested…

---

## [Where I can find the lsst\_distrib dependency tree?](https://www.rubin.community/t/where-i-can-find-the-lsst-distrib-dependency-tree/3537)

<div class="topic-metadata">

**Author:** [@mwv](https://www.rubin.community/u/mwv)\
**Replies:** 3\
**Last updated:** [January 8, 2019, 2:56pm UTC](https://www.rubin.community/t/where-i-can-find-the-lsst-distrib-dependency-tree/3537 "2019-01-08T14:56:03Z")

</div>

Could someone kindly remind me where I can find the current dependency tree for all the Python modules required for lsst\_apps or lsst\_distrib? The self-install requirements are https://pipelines.lsst.io/install/prereqs…

---

## [Running Jupyter notebook --- Existing python 3.5 interferes](https://www.rubin.community/t/running-jupyter-notebook-existing-python-3-5-interferes/2152)

<div class="topic-metadata">

**Author:** [@n.rattenbury](https://www.rubin.community/u/n.rattenbury)\
**Replies:** 3\
**Last updated:** [August 9, 2017, 2:04am UTC](https://www.rubin.community/t/running-jupyter-notebook-existing-python-3-5-interferes/2152 "2017-08-09T02:04:10Z")

</div>

Hi there, I'm trying to run a MAF tutorial in a jupyter notebook and I am getting this error when I try to start jupyter: \*\*\*\*\*\*\*@sc:~/lsst\_stack$ jupyter notebook Traceback (most recent call last): File "/home/nich…

---

## [\_\_all\_\_ should go before imports in Python code](https://www.rubin.community/t/--all---should-go-before-imports-in-python-code/1769)

<div class="topic-metadata">

**Author:** [@rowen](https://www.rubin.community/u/rowen)\
**Replies:** 3\
**Last updated:** [April 6, 2017, 5:27pm UTC](https://www.rubin.community/t/--all---should-go-before-imports-in-python-code/1769 "2017-04-06T17:27:47Z")

</div>

As per PEP8: \_\_all\_\_ statements in Python code should go after from \_\_future\_\_ import absolute\_import, division, print\_function but before any other import statements. The Python style guide has been updated accordingly…

---

## [How, from Python, do I check if a given RA, Dec is in an exposure?](https://www.rubin.community/t/how-from-python-do-i-check-if-a-given-ra-dec-is-in-an-exposure/1413)

<div class="topic-metadata">

**Author:** [@mwv](https://www.rubin.community/u/mwv)\
**Replies:** 4\
**Last updated:** [November 16, 2016, 10:13pm UTC](https://www.rubin.community/t/how-from-python-do-i-check-if-a-given-ra-dec-is-in-an-exposure/1413 "2016-11-16T22:13:44Z")

</div>

How do I easily check if a given RA, Dec is in an exposure from Python? I have calexp in a repository, and want to check if a given RA, Dec is in that particular image.

---

## [Go all in with anaconda?](https://www.rubin.community/t/go-all-in-with-anaconda/686)

<div class="topic-metadata">

**Author:** [@frossie](https://www.rubin.community/u/frossie)\
**Replies:** 18\
**Last updated:** [May 4, 2016, 4:38am UTC](https://www.rubin.community/t/go-all-in-with-anaconda/686 "2016-05-04T04:38:05Z")

</div>

This is a pre-RFC to test the waters. The reality is, we have a lot of issues that originate from the wide range of user environments convolved with a relative brittleness of the stack to third party changes convolved …

---

## [Python properties and mutability/constness](https://www.rubin.community/t/python-properties-and-mutability-constness/695)

<div class="topic-metadata">

**Author:** [@jbosch](https://www.rubin.community/u/jbosch)\
**Replies:** 17\
**Last updated:** [April 28, 2016, 5:47pm UTC](https://www.rubin.community/t/python-properties-and-mutability-constness/695 "2016-04-28T17:47:13Z")

</div>

As we inch towards more Pythonic interfaces, we're going to repeatedly encounter problems in which a property needs to expose an immutable view to a mutable object. For instance, let's imagine that we have a Point clas…

---

## [SPIE Abstract: Investigating interoperability of the LSST Data Management software stack with Astropy](https://www.rubin.community/t/spie-abstract-investigating-interoperability-of-the-lsst-data-management-software-stack-with-astropy/425)

<div class="topic-metadata">

**Author:** [@timj](https://www.rubin.community/u/timj)\
**Replies:** 8\
**Last updated:** [March 30, 2016, 8:35pm UTC](https://www.rubin.community/t/spie-abstract-investigating-interoperability-of-the-lsst-data-management-software-stack-with-astropy/425 "2016-03-30T20:35:00Z")

</div>

I intend to submit the following abstract to the SPIE “Software and Cyberinfrastructure for Astronomy” track at next summer’s SPIE Astronomy conference. This will be based on work I will be doing February to April. Let m…

---

## [Pythonic views for afw.table](https://www.rubin.community/t/pythonic-views-for-afw-table/483)

<div class="topic-metadata">

**Author:** [@jbosch](https://www.rubin.community/u/jbosch)\
**Replies:** 7\
**Last updated:** [January 18, 2016, 3:07pm UTC](https://www.rubin.community/t/pythonic-views-for-afw-table/483 "2016-01-18T15:07:17Z")

</div>

Despite the fact I own the dubious title of being World Expert on afw.table, I'm growing increasingly frustrated with the clunkiness of using it for simple analysis and algorithm-debugging in Python. I'm also quite awar…

---

## [Use of "if True/if False" in python and "#if 0" in C++](https://www.rubin.community/t/use-of-if-true-if-false-in-python-and-if-0-in-c/455)

<div class="topic-metadata">

**Author:** [@parejkoj](https://www.rubin.community/u/parejkoj)\
**Replies:** 3\
**Last updated:** [December 21, 2015, 6:48pm UTC](https://www.rubin.community/t/use-of-if-true-if-false-in-python-and-if-0-in-c/455 "2015-12-21T18:48:50Z")

</div>

I've stumbled on some uses of if False/if True in the stack, which apparently were debugging statements that got left in on commit, or blocks of code that were intentionally left in for future reference. Here's an exampl…

---

## [\_Fluent Python\_ book club](https://www.rubin.community/t/-fluent-python--book-club/284)

<div class="topic-metadata">

**Author:** [@frossie](https://www.rubin.community/u/frossie)\
**Replies:** 39\
**Last updated:** [December 7, 2015, 8:29pm UTC](https://www.rubin.community/t/-fluent-python--book-club/284 "2015-12-07T20:29:00Z")

</div>

Mondays noon PST starting Monday Dec 7th. Go here: https://www.eventolist.com/e/C7J6AL0K6L40X33LASUE and click on "Download All" to add the schedule to your calendar (\*.ics) - BlueJeans URL location is on the event. So …
