@@ -61,7 +61,8 @@ app.commands.execute('jupyterlab-diff:unified-cell-diff', {
6161 cellId: ' cell-id' ,
6262 originalSource: ' print("Hello")' ,
6363 newSource: ' print("Hello, World!")' ,
64- showActionButtons: true
64+ showActionButtons: true ,
65+ allowInlineDiffs: false
6566});
6667```
6768
@@ -72,7 +73,8 @@ app.commands.execute('jupyterlab-diff:unified-file-diff', {
7273 filePath: ' /path/to/file.py' ,
7374 originalSource: ' print("Hello")' ,
7475 newSource: ' print("Hello, World!")' ,
75- showActionButtons: true
76+ showActionButtons: true ,
77+ allowInlineDiffs: false
7678});
7779```
7880
@@ -117,6 +119,7 @@ window.jupyterapp.commands.execute('jupyterlab-diff:split-cell-diff', {
117119| ` originalSource ` | ` string ` | Yes | Original source code to compare against |
118120| ` newSource ` | ` string ` | Yes | New source code to compare with |
119121| ` showActionButtons ` | ` boolean ` | No | Whether to show action buttons for chunk acceptance (default: ` true ` ) |
122+ | ` allowInlineDiffs ` | ` boolean ` | No | Whether to show inline diffs in the diff widget (default: ` false ` ) |
120123| ` notebookPath ` | ` string ` | No | Path to the notebook containing the cell. If not provided, uses the current notebook |
121124
122125#### ` jupyterlab-diff:unified-file-diff ` (File Diff)
@@ -127,6 +130,7 @@ window.jupyterapp.commands.execute('jupyterlab-diff:split-cell-diff', {
127130| ` originalSource ` | ` string ` | Yes | Original source code to compare against |
128131| ` newSource ` | ` string ` | Yes | New source code to compare with |
129132| ` showActionButtons ` | ` boolean ` | No | Whether to show action buttons for chunk acceptance (default: ` true ` ) |
133+ | ` allowInlineDiffs ` | ` boolean ` | No | Whether to show inline diffs in the diff widget (default: ` false ` ) |
130134
131135## Architecture
132136
0 commit comments