Description
We’ve found Observable notebooks really useful; they make it easy to analyze data and share results. Creating an Observable notebook is enormously easier than creating a new dedicated interface within SourceCred itself, so they allow fast iteration and exploration of concepts.
However, Observable notebooks are handicapped by a key limitation: we cannot run SourceCred’s native code inside of them. As such, we can’t re-compute Cred, or even do a good job of exploring our data structures.
This has basically blocked the Cred Analysis Notebooks initiative.
Status: Championed
Champion
Benefits
Enable Cred Analysis Notebooks.
Implementation Plan
- Enable compiling a JS file with major API points accessible
- Publish proof-of-concept notebook that does cred analysis in Observable
Deliverables
Proof of concept observable notebook, with cred analysis.
Dependencies
References
Contributions
- https://github.com/sourcecred/sourcecred/pull/1526
- Debugging session with @wchargin and @decentralion learning how to get live code into Observable (TODO: write documentation)
- Extensive debugging session with @wchargin and @decentralion understanding why the module failed to load in Observable (resolution: recompile with external modules inlined, add global this object)