How to edit Python panel with External editor just as labs for shelf tool?

Thanks!