Skip to content

Warning when using laminr in jupyter notebook and connect message not shown #243

@ap--

Description

@ap--

I get this warning when running laminr==1.2.1 with lamindb==1.17.0, and the

→ connected lamindb: org/instance

is only shown in the terminal jupyter logs

Image

To reproduce, install pixi, use the below pixi.toml and run:

pixi run -e laminr-jupyter jupyter
[workspace]
version = "1.0.0"
name = "lamin-base"
description = "Base environment for working with lamindb Python"
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
channels = ["conda-forge", "bioconda"]
authors = ["Andreas Poehlmann <[email protected]>"]
requires-pixi = ">=0.60"

[system-requirements]
macos = "14.0"

[tasks]
lamin = { cmd = "lamin" }

[dependencies]
python = "3.13.*"
pip = "*"

[pypi-dependencies]
lamindb = { version = ">=1.17.0,<2", extras = ["gcp"] }

# =============================================================================
# Feature: jupyter - adds JupyterLab
# =============================================================================
[feature.jupyter.dependencies]
jupyterlab = ">=4.5.0"
ipython = ">=9.0.0"
ipywidgets = ">=8.0.0"

[feature.jupyter.tasks]
jupyter = { cmd = "jupyter lab" }

# =============================================================================
# Feature: laminr - adds R support with laminr package
# =============================================================================
[feature.laminr.dependencies]
r-base = "4.5.*"
r-laminr = ">=1.2.1,<2"
# r-anndata = { version = "*", channel = "bioconda" }
r-arrow = "*"
r-jsonlite = "*"
r-knitr = "*"
r-nanoparquet = "*"
r-quarto = "*"
r-readr = "*"
r-rstudioapi = "*"
r-rsvg = "*"
r-seurat = "*"
r-testthat = "*"
r-yaml = "*"
r-irkernel = ">=1"

[feature.laminr.tasks._fix_reticulate]
# workaround for https://github.com/rstudio/reticulate/issues/1650
cmd = 'echo "# cmd: $CONDA_PREFIX/bin/conda" > $CONDA_PREFIX/conda-meta/history'

[feature.laminr.tasks]
jupyter = { cmd = "jupyter lab", depends-on = ["_fix_reticulate"] }

[feature.laminr.activation.env]
PIXI_R_LIBS = "$CONDA_PREFIX/lib/R/library"
R_LIBS = "$PIXI_R_LIBS"
R_LIBS_USER = "$PIXI_R_LIBS"
RETICULATE_PYTHON = "$CONDA_PREFIX/bin/python"

# =============================================================================
# Environments
# =============================================================================
[environments]
default = { solve-group = "default" }
jupyter = { features = ["jupyter"], solve-group = "default" }
laminr = { features = ["laminr"], solve-group = "default" }
laminr-jupyter = { features = ["jupyter", "laminr"], solve-group = "default" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions