How to convert a jupyter notebook to a python script with cell delimiters (#%%)? I've already checked nbconvert , but it doesn't seem to have the one. Also, the same question found, the answer doesn't satisfy the need because actual raw source codes of jupyter notebook isn't structured as such. (It'd be better to be able to convert at once, instead of converting with nbconvert first and then pattern matching)
Any tools recommended? Or could you share a script to achieve this?