Skip to content

[BUG] developer install now requires non-editable install first #3747

@bmorris3

Description

@bmorris3

Jdaviz component

Other (explain in Description below)

Description

In the dev docs, we had once said:

To install ``jdaviz`` for development or from source in an editable mode
(i.e., changes to the locally checked out code would reflect in runtime
after you restarted the Python kernel):
.. code-block:: bash
pip install -e .
Note: It is recommended to install the package without ``-e`` flag initially
to ensure that the template files are copied correctly.

I'm not sure if something changed, but lately I must pip install . before pip install -e . will work.

How to Reproduce

  1. Create a clean env
  2. build from source with pip install -e .
  3. try from jdaviz import Imviz

I get:

ImportError: cannot import name 'Imviz' from 'jdaviz' (unknown location)

Expected behavior

The package should be available.

Browser

No response

Jupyter

IPython : 9.2.0
ipykernel : 6.29.5
ipywidgets : 8.1.7
jupyter_client : 8.6.3
jupyter_core : 5.7.2
jupyter_server : 2.16.0
jupyterlab : 4.4.3
nbclient : 0.10.2
nbconvert : 7.16.6
nbformat : 5.10.4
notebook : 7.4.2
qtconsole : not installed
traitlets : 5.14.3

Software versions

macOS-15.6-arm64-arm-64bit
Python 3.12.9 | packaged by Anaconda, Inc. | (main, Feb 6 2025, 12:55:12) [Clang 14.0.6 ]
Numpy 1.26.4
astropy 7.0.2
matplotlib 3.10.3
scipy 1.15.3
scikit-image 0.25.2
asdf 4.1.0
stdatamodels 3.0.2
gwcs 0.24.0
regions 0.10
specutils 2.0.0
specreduce 1.6.0
photutils 2.2.0
astroquery 0.4.10
pyyaml 6.0.2
asteval 1.0.6
idna 3.10
traitlets 5.14.3
bqplot 0.12.45
bqplot-image-gl 1.6.1
glue-core 1.23.1.dev5+gbc77491aa.d20250829
glue-jupyter 0.24.0
glue-astronomy 0.12.0
echo 0.11.0
ipyvue 1.11.2
ipyvuetify 1.11.1
ipysplitpanes 0.2.0
ipygoldenlayout 0.4.0
ipypopout 2.0.0
Jinja2 3.1.6
solara 1.49.0
vispy 0.15.1
sidecar 0.7.0
Jdaviz 4.4.dev5+gd6d0a9418

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationExplanation of code and conceptsneeds-triageIssue opened via template and needs triaging

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions