Open PSSF23 opened 3 years ago
After a little tweaking, I did find this type of codes necessary for showing the formatted cells. But I will leave this issue open for considerations and hope to find a simpler way of integrating javascript
in the future.
Unclever Workaround:
Before executing anything, use %load_ext lab_black
to format all cells (run-all). Then delete the command, restart the kernel, and run everything as normal. This solution would only work for executions that take little effort.
Environment:
python
: 3.8.5notebook
: 6.1.3nb-black
: 1.0.7Description: When running
nb-black
in jupyter notebooks, the following type of codes would be added to every cell that has been reformatted.It repeats the cell contents twice and fortunately would not show anything on the notebook or on the script converted from the notebook. But the text greatly increases the source code sizes and makes notebook changes unfriendly to read.
Could someone help me address this issue? Thanks!