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
Metadata
Release files for biblioflow-nb 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| biblioflow_nb-0.3.0.tar.gz | 19.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| biblioflow_nb-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.6 kB
Release files / biblioflow_nb-0.3.0.tar.gz
| Download URL | biblioflow_nb-0.3.0.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c54d0b9ccfd73ede316c251c1e956abe95c17bbedd7f8fabc8de3c3e0db4869c
|
|
BLAKE2b-256 checksum How to use checksums |
993350ba1ea8fa2632a230ed85f6fadaaab1785041eea417f4c02cb83c107065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.13 Linux/6.17.0-1015-azure
|
Release files / biblioflow_nb-0.3.0-py3-none-any.whl
| Download URL | biblioflow_nb-0.3.0-py3-none-any.whl |
|---|---|
| Size | 36.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50ca0efcef0857364af61cb479907218828bdecd2b96e069edefe6d819292d32
|
|
BLAKE2b-256 checksum How to use checksums |
1d72e873abb46ddcca9033dbfdf90f59539479d0e451619ecb71f6fdc7dabe9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.13 Linux/6.17.0-1015-azure
|