Skip to main content

Notebook widget application for biblioflow bibliometric workflows.

Project description

biblioflow-nb

Notebook widget application for biblioflow bibliometric workflows.

biblioflow-nb provides a Jupyter/Colab-friendly widget UI that mirrors the core workflow of biblioflow-web without running FastAPI, React, or a local web server. All calculations are delegated to the core biblioflow package.

Quickstart

import biblioflow_nb as bfn

bfn.colab_setup()  # safe outside Google Colab
app = bfn.launch()

Launch with an existing dataset:

import biblioflow as bf
import biblioflow_nb as bfn

dataset = bf.load("records.ris")
app = bfn.launch(records=dataset)

Import from PubMed/PMC directly, or stage records first for screening:

import os
import biblioflow_nb as bfn

os.environ["BIBLIOFLOW_NCBI_EMAIL"] = "researcher@example.org"

app = bfn.app(display=False)
app.from_pubmed(query="bibliometrics AND reproducibility", limit=20)
app.from_pmc(query="open science", limit=20)

run = app.stage_pubmed(query="bibliometrics AND reproducibility", limit=20)
app.update_candidates([run["candidates"][0]["candidate_id"]], status="selected")
app.promote_candidates()
app.display()

The widget app also includes a Remote screening panel. API keys can be provided in the panel or through BIBLIOFLOW_NCBI_API_KEY; they are not stored in the session manifest.

Generic screening helpers are available for any records or local file:

app.stage_records([{"title": "Manual candidate"}], source="generic")
app.stage_file("records.ris", source="auto", format="auto")
app.stage_pmc(query="open science", limit=50)
app.update_candidates(["candidate-id"], status="maybe")
app.promote_candidates(include_statuses=("selected", "maybe"))

Development

cd packages/biblioflow-nb
PYTHONPATH=src:../biblioflow/src pytest --cov=biblioflow_nb --cov-fail-under=90
PYTHONPATH=src:../biblioflow/src python -m ruff check src tests
PYTHONPATH=src:../biblioflow/src python -m mypy src
poetry build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biblioflow_nb-0.3.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biblioflow_nb-0.3.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file biblioflow_nb-0.3.0.tar.gz.

File metadata

  • Download URL: biblioflow_nb-0.3.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.13 Linux/6.17.0-1015-azure

File hashes

Hashes for biblioflow_nb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c54d0b9ccfd73ede316c251c1e956abe95c17bbedd7f8fabc8de3c3e0db4869c
MD5 135c4d056052e3f362f3e0683fc3c9ab
BLAKE2b-256 993350ba1ea8fa2632a230ed85f6fadaaab1785041eea417f4c02cb83c107065

See more details on using hashes here.

File details

Details for the file biblioflow_nb-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: biblioflow_nb-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.13 Linux/6.17.0-1015-azure

File hashes

Hashes for biblioflow_nb-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50ca0efcef0857364af61cb479907218828bdecd2b96e069edefe6d819292d32
MD5 9a8386e28d0d53e70acff8f72de09ce4
BLAKE2b-256 1d72e873abb46ddcca9033dbfdf90f59539479d0e451619ecb71f6fdc7dabe9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page