Open sapphire008 opened 4 years ago
Thanks for the feature request! We'll discuss this at our upcoming triage 😊
Im assuming this didnt pass triage? :) I really appreciated this ability when I used Jupyter in my browser -- VScode support would be very helpful
@DonJayamanne The screenshot above seems to be consistent with how Freeze
implemented the cell freezing capabilities, based on this script:
deletable = True
, editable = True
deletable = False
, editable = False
deletable = False
, editable = False
. Additionally, they extended the metadata to have a field run_control.frozen = True
. Then they patched the execution function with this function to check the run_control
state before execution. function patch_CodeCell_execute () {
console.log('[Freeze] patching CodeCell.prototype.execute');
var old_execute = CodeCell.prototype.execute;
CodeCell.prototype.execute = function () {
if (this.metadata.run_control === undefined ||
!this.metadata.run_control.frozen
) {
old_execute.apply(this, arguments);
}
};
}
Although I can read the script itself, I have never developed in JavaScript in the past. So I have zero confidence in my ability to create a PR for this feature. But I am willing to work with anyone that knows JavaScript + VSCode Jupyter Extension.
Would be good to add :
skip some cell when run all
but runable when run single cell
Any update on this? Honoring official Jupyter metadata will be really helpful. Especially the deletable
and editable
.
Feature: Notebook Editor, Interactive Window, Python Editor cells
Description
The unofficial Jupyter notebook extension have a "Freeze" extension. I am wondering if the team can add this feature to the notebook extension. It has 3 modes:
Use cases:
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl