Skip to content

✨ NEW: Collapsible input code blocks - #128

Merged
mmcky merged 4 commits into
masterfrom
collapse-cells
May 21, 2021
Merged

mmcky merged 4 commits into
masterfrom
collapse-cells

Conversation

@AakashGfude

@AakashGfude AakashGfude commented May 20, 2021 •

Copy link
Copy Markdown
Member

code blocks can be collapsed with the tag - collapse-*

The * can be n in which case the height is 22.4 rem:

Screen Shot 2021-05-20 at 11 46 19 am

or the * can be a number that specifies the approximate line numbers till which to collapse.

Ex:- collapse-10

Screen Shot 2021-05-20 at 11 48 12 am

collapse-30
Screen Shot 2021-05-20 at 11 49 18 am

when expanded:

Screen Shot 2021-05-20 at 1 30 17 pm

@AakashGfude
AakashGfude requested review from DrDrij and mmcky May 20, 2021 01:50
@codecov

codecov Bot commented May 20, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #128 (9d8841c) into master (c5cc09f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #128   +/-   ##
=======================================
  Coverage   71.73%   71.73%           
=======================================
  Files           2        2           
  Lines         230      230           
=======================================
  Hits          165      165           
  Misses         65       65           
Flag Coverage Δ
pytests 71.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5cc09f...9d8841c. Read the comment docs.

@github-actions
github-actions Bot temporarily deployed to commit May 20, 2021 03:33 Inactive
@github-actions
github-actions Bot temporarily deployed to commit May 20, 2021 04:19 Inactive
@mmcky

mmcky commented May 20, 2021

Copy link
Copy Markdown
Contributor

This is looking really nice @AakashGfude

@mmcky
mmcky merged commit 305ec75 into master May 21, 2021
@mmcky
mmcky deleted the collapse-cells branch May 21, 2021 01:54
AakashGfude added a commit that referenced this pull request May 27, 2021
* adding basic functionality to add launch buttons

* triggering commit

* showing settings icon when multiple servers

* formatting names

* edits on init py

* editing test fixture

* class caption removed

* quantecon-book-theme js is not present

* adding ipynb extension

* faulty pdb

* subpath of the repo

* adding repo subpath to colab linkl

* launch buttons

* repo url formatting

* removed private button

* removed private option for now.

* test file

* hiding chevron icons

* url_subpath

* ✨ NEW: Collapsible input code blocks (#128)

* basic collapse cell functionality

* collapsible code blocks

* collapsible code cells javascript corrections

* Styling and markup for advanced notebook launcher

* Remove troubleshooting css border

* CSS toolbar tweak

* Logic to show launch toolbar button with popup

* Tidy launch popup styles

* Override pydata paragraph styles

* Override pydata heading styles

* Fix heading css error

* Fix another heading css error

* Add JS for launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* update libsass requirement

Co-authored-by: AakashGC <[email protected]>
Co-authored-by: AakashGC <[email protected]>
Co-authored-by: mmcky <[email protected]>
AakashGfude added a commit that referenced this pull request Jun 1, 2021
* private window jupyterlab

* http link checking

* ✨ NEW: Advanced launch notebook button + popup (#130)

* adding basic functionality to add launch buttons

* triggering commit

* showing settings icon when multiple servers

* formatting names

* edits on init py

* editing test fixture

* class caption removed

* quantecon-book-theme js is not present

* adding ipynb extension

* faulty pdb

* subpath of the repo

* adding repo subpath to colab linkl

* launch buttons

* repo url formatting

* removed private button

* removed private option for now.

* test file

* hiding chevron icons

* url_subpath

* ✨ NEW: Collapsible input code blocks (#128)

* basic collapse cell functionality

* collapsible code blocks

* collapsible code cells javascript corrections

* Styling and markup for advanced notebook launcher

* Remove troubleshooting css border

* CSS toolbar tweak

* Logic to show launch toolbar button with popup

* Tidy launch popup styles

* Override pydata paragraph styles

* Override pydata heading styles

* Fix heading css error

* Fix another heading css error

* Add JS for launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* Update launch popup functionality

* update libsass requirement

Co-authored-by: AakashGC <[email protected]>
Co-authored-by: AakashGC <[email protected]>
Co-authored-by: mmcky <[email protected]>

* adding branch

* checking and adding http in private server

* greying empty private field

* small edits

* launchNotebookLinkURL href

* launchserver function edits

* re adding assets

Co-authored-by: DrDrij <[email protected]>
Co-authored-by: mmcky <[email protected]>

This branch was previously deployed

1 inactive deployment
commit — 9d8841c0 Deployed May 20, 2021 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants