
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
commutable
Advanced tools
/kəˈmyo͞otəbəl/
- (of a place or journey) allowing regular commuting to and from work.
- capable of being exchanged or converted.
commutable
is a library for Jupyter Notebook operations, helping to enable
history stored as a series of immutable notebooks.
Credits to Tom MacWright for the outline.
npm install --save commutable
> const uuid = require('uuid').v4
undefined
> const commutable = require('.')
undefined
> nb = commutable.emptyNotebook
Map { "cellOrder": List [], "nbformat": 4, "nbformat_minor": 0, "cellMap": Map {} }
> cellID = uuid()
'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b'
> nb2 = commutable.appendCell(nb, commutable.emptyCodeCell, cellID)
> nb2.toJS()
{ cellOrder: [ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b' ],
nbformat: 4,
nbformat_minor: 0,
cellMap:
{ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b':
{ cell_type: 'code',
execution_count: null,
metadata: [Object],
source: '',
outputs: [] } } }
> nb3 = commutable.appendCell(nb2,
... commutable.emptyCodeCell.set('source', 'import random\nrandom.random()'), uuid())
> nb3.toJS()
{ cellOrder:
[ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b',
'8d40321c-87c0-4d86-900c-2174f6920969' ],
nbformat: 4,
nbformat_minor: 0,
cellMap:
{ 'd50dbdd5-1af0-4c8d-90fb-ae9ed9ff6c9b':
{ cell_type: 'code',
execution_count: null,
metadata: [Object],
source: '',
outputs: [] },
'8d40321c-87c0-4d86-900c-2174f6920969':
{ cell_type: 'code',
execution_count: null,
metadata: [Object],
source: 'import random\nrandom.random()',
outputs: [] } } }
FAQs
Immutable notebook model and operations
The npm package commutable receives a total of 56 weekly downloads. As such, commutable popularity was classified as not popular.
We found that commutable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.