Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
musicinformationretrieval-com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
A.S.
musicinformationretrieval-com
Commits
0fdd6ba9
Commit
0fdd6ba9
authored
Apr 28, 2017
by
Steve Tjoa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing hide input js
parent
17ae52a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
126 deletions
+0
-126
about.html
about.html
+0
-68
about.ipynb
about.ipynb
+0
-58
No files found.
about.html
View file @
0fdd6ba9
...
...
@@ -11773,74 +11773,6 @@ div#notebook {
<div
tabindex=
"-1"
id=
"notebook"
class=
"border-box-sizing"
>
<div
class=
"container"
id=
"notebook-container"
>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[1]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span></span><span
class=
"kn"
>
import
</span>
<span
class=
"nn"
>
IPython.display
</span>
<span
class=
"kn"
>
as
</span>
<span
class=
"nn"
>
ipd
</span>
<span
class=
"c1"
>
# Hide code by default when the notebook is exported as HTML.
</span>
<span
class=
"n"
>
ipd
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
display_html
</span><span
class=
"p"
>
(
</span><span
class=
"s1"
>
'''
</span>
<span
class=
"s1"
>
<
script
>
</span>
<span
class=
"s1"
>
$(function() {
</span>
<span
class=
"s1"
>
if ($(
"
body.notebook_app
"
).length == 0) {
</span>
<span
class=
"s1"
>
$(
"
.input
"
).hide();
</span>
<span
class=
"s1"
>
}
</span>
<span
class=
"s1"
>
});
</span>
<span
class=
"s1"
>
<
/script
>
</span>
<span
class=
"s1"
>
'''
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
raw
</span><span
class=
"o"
>
=
</span><span
class=
"bp"
>
True
</span><span
class=
"p"
>
)
</span>
<span
class=
"c1"
>
# Create HTML buttons to show or hide IPython input cells.
</span>
<span
class=
"n"
>
ipd
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
display_html
</span><span
class=
"p"
>
(
</span><span
class=
"s1"
>
'''
</span>
<span
class=
"s1"
>
<
button onclick=
"
$(
'
.input
'
).show();
">
Show input
<
/button
>
</span>
<span
class=
"s1"
>
<
button onclick=
"
$(
'
.input
'
).hide();
">
Hide input
<
/button
>
</span>
<span
class=
"s1"
>
'''
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
raw
</span><span
class=
"o"
>
=
</span><span
class=
"bp"
>
True
</span><span
class=
"p"
>
)
</span>
</pre></div>
</div>
</div>
</div>
<div
class=
"output_wrapper"
>
<div
class=
"output"
>
<div
class=
"output_area"
>
<div
class=
"prompt"
></div>
<div
class=
"output_html rendered_html output_subarea "
>
<script>
$
(
function
()
{
if
(
$
(
"body.notebook_app"
).
length
==
0
)
{
$
(
".input"
).
hide
();
}
});
</script>
</div>
</div>
<div
class=
"output_area"
>
<div
class=
"prompt"
></div>
<div
class=
"output_html rendered_html output_subarea "
>
<button
onclick=
"$('.input').show();"
>
Show input
</button>
<button
onclick=
"$('.input').hide();"
>
Hide input
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing text_cell rendered"
>
<div
class=
"prompt input_prompt"
>
</div>
...
...
about.ipynb
View file @
0fdd6ba9
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<script>\n",
"$(function() {\n",
" if ($(\"body.notebook_app\").length == 0) {\n",
" $(\".input\").hide(); \n",
" }\n",
"});\n",
"</script>\n"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"\n",
"<button onclick=\"$('.input').show();\">Show input</button>\n",
"<button onclick=\"$('.input').hide();\">Hide input</button>\n"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import IPython.display as ipd\n",
"\n",
"# Hide code by default when the notebook is exported as HTML.\n",
"ipd.display_html('''\n",
"<script>\n",
"$(function() {\n",
" if ($(\"body.notebook_app\").length == 0) {\n",
" $(\".input\").hide(); \n",
" }\n",
"});\n",
"</script>\n",
"''', raw=True)\n",
"\n",
"# Create HTML buttons to show or hide IPython input cells.\n",
"ipd.display_html('''\n",
"<button onclick=\"$('.input').show();\">Show input</button>\n",
"<button onclick=\"$('.input').hide();\">Hide input</button>\n",
"''', raw=True)"
]
},
{
"cell_type": "markdown",
"metadata": {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment