Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 4fa18cf

Browse files
authored
Merge pull request #18 from nteract/feats
add readOnly cell option
2 parents 13d4dec + 95f1a70 commit 4fa18cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/template/components/presentation-cell.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export default class PresentationCell extends React.Component {
3838
"Ctrl-Enter": this.submit,
3939
"Cmd-Enter": this.submit
4040
},
41-
mode: "python"
41+
mode: "python",
42+
readOnly: this.props.readOnly
4243
}
4344
};
4445
}

0 commit comments

Comments
 (0)