
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
@nteract/stateful-components
Advanced tools
A collection of sub-components pre-connected to nteract's Redux state
This package exports a set of React components that are pre-connected to the Redux state as mapped by @nteract/core. This package is designed to reduced the hassle for building React-based applications for developers who are already building on top of the core SDK. It also exposes several interfaces for extending the mapStateToProps
, mapDispatchToProps
, and styles of the individual components.
$ yarn add @nteract/stateful-components
$ npm install --save @nteract/stateful-components
You can import the top-level Notebook component which contains the canonical setup for a Jupyter-backed notebook application.
import { Notebook } from "@nteract/stateful-components"
class MyNotebook extends React.Component {
render() {
return <Notebook contentRef={someContentRefHere}>
}
}
Alternatively, you can assemble your own notebook-UI from the subcomponents. For example, to swap out the canonical MarkdownCell
implementation.
import { Cells, Cell, CodeCell, RawCell } from "@nteract/stateful-components";
class MyMarkdownCell extends React.Component {
static defaultProps = {
cell_type: "markdown"
}
render() {
return <p>My custom logic here</p>;
}
}
class MyNotebook extends React.Component {
render() {
return <Cells>
<Cell>
<MyMarkdownCell/>
<CodeCell/>
<RawCell>
</Cell>
</Cells>;
}
}
We're working on adding more documentation for this component. Stay tuned by watching this repository!
If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:stateful-components
label.
FAQs
A collection of sub-components pre-connected to nteract's Redux state
The npm package @nteract/stateful-components receives a total of 4,924 weekly downloads. As such, @nteract/stateful-components popularity was classified as popular.
We found that @nteract/stateful-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.