-
Notifications
You must be signed in to change notification settings - Fork 330
Make hiredis jupyter example interactive #3306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
b99e79b
941237f
92204b4
00e2210
d3da90c
fc03082
2b80a7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -206,12 +206,10 @@ | |
| {{ else }} | ||
| {{/* Regular line - add to full file */}} | ||
| {{ if $inAnyStep }} | ||
| {{/* Skip comment-only lines in steps */}} | ||
| {{ if or (eq $trimmed "") (not (hasPrefix $trimmed $commentPrefix)) }} | ||
| {{ $currentSection = $currentSection | append . }} | ||
| {{ if $inCurrentStep }} | ||
| {{ $currentStepLines = $currentStepLines | append . }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment filter removal unintentionally changes all existing examplesMedium Severity Removing the comment-only line filter here is a global change that affects all languages using this shortcode, not just C. For instance, the Python Reviewed by Cursor Bugbot for commit fc03082. Configure here. |
||
| {{ end }} | ||
| {{/* Preserve all lines verbatim, comments included. */}} | ||
| {{ $currentSection = $currentSection | append . }} | ||
| {{ if $inCurrentStep }} | ||
| {{ $currentStepLines = $currentStepLines | append . }} | ||
| {{ end }} | ||
| {{ else }} | ||
| {{/* Context lines (outside any step) - include empty lines for consistent spacing */}} | ||
|
|
@@ -324,6 +322,7 @@ | |
| {{/* Map internal language identifier to a CodeMirror mode name for data-language */}} | ||
| {{ $cmLanguage := $language }} | ||
| {{ if eq $language "node.js" }}{{ $cmLanguage = "javascript" }}{{ end }} | ||
| {{ if eq $language "c" }}{{ $cmLanguage = "text/x-csrc" }}{{ end }} | ||
| <div class="step-code-view"> | ||
| <div data-executable="true" data-language="{{ $cmLanguage }}" class="thebe-cell"> | ||
| {{- highlight $stepCode $language "" -}} | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.