[Python] VSCode split cells without creating new lines

Discussão em 'Python' iniciado por Stack, Abril 14, 2025.

  1. Stack

    Stack Membro Participativo

    Suppose I have the folowing code in a cell of a Jupyter Notebook opened with VSCode and its jupyter extension:

    # Print the scores

    print("Query: ", query)
    for rank in ranks:
    print(f"{rank['score']:.2f}\t{corpus[rank['corpus_id']]}")


    that is:

    [​IMG]

    positiong the cursor after scores and pressing Ctrl+Shift+-, I obtain

    [​IMG]

    and, as you can see, a new line is created after "scores".

    How to prevent the creation of this new line?

    Continue reading...

Compartilhe esta Página