collapse partial code in large cell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2022 06:50 AM
In databricks notebook, we have SQL cells that are over 700 lines long. Is there a way to collapse a portion of the code vs scrolling?
Looking for something similar to what exists in Netezza, "--region" and "--end region" where anything between those commands are collapsible.
- Labels:
-
Databricks notebook

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 10:44 PM
Hi @james t
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 09:08 AM
Sorry @Vidula Khanna . I haven't found a working solution yet. Here's a bit more info on what I'm looking for:
current query (If I have 60 columns, it's a long scroll to the bottom. True - I can join lines to shorten the cell, but it makes it hard to see the columns selected)
%sql
SELECT
column1
, column2
, column3
, column4
, column5
, column6
, column7
, column8
, column9
, column10
, column11
FROM
table
Desired (to avoid scrolling through the select columns to get to the bottom of the code)
%sql
SELECT
<collapsed select columns>
FROM
table

