Python Forum
How to do line continuation in Jupyter Notebook?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to do line continuation in Jupyter Notebook?
#4
(Sep-22-2021, 07:55 AM)ibreeden Wrote: Unfortunately the continuation does not work for comments. You need to comment the second line also.

Did not know that. Thanks.

For a regular line, after the backslash can I indent however I please or do I need to use four spaces?
Reply


Messages In This Thread
RE: How to do line continuation in Jupyter Notebook? - by Mark17 - Sep-22-2021, 11:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 975 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 683 Oct-29-2023, 12:40 PM
Last Post: Mark17
  How to programmatically stop a program in Jupyter Notebook? Mark17 11 36,887 Feb-12-2023, 01:41 PM
Last Post: jp21in
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 926 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Graphs from Jupyter notebook to word Scott 0 875 Nov-28-2022, 06:16 AM
Last Post: Scott
  Opening an empty Jupyter notebook in VSCODE Krischu 3 1,821 Mar-09-2022, 01:57 PM
Last Post: Larz60+
  Jupyter Notebook as IDE bytecrunch 0 1,599 Sep-12-2021, 07:41 PM
Last Post: bytecrunch
  [solved] unexpected character after line continuation character paul18fr 4 3,383 Jun-22-2021, 03:22 PM
Last Post: deanhystad
  It says there is no keras in jupyter notebook. it is wrong there is a keras install Led_Zeppelin 0 1,874 Apr-27-2021, 08:29 PM
Last Post: Led_Zeppelin
  importing matplotlib in jupyter notebook Led_Zeppelin 4 3,450 Feb-25-2021, 07:28 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020