Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8893 > unrolled thread

Jupyter Notebook: how to comment out code in ipynb files ?

Started byJerome BENOIT <sphericaltriangle@rezozer.net>
First post2016-09-25 18:40 +0200
Last post2016-09-26 19:20 +0200
Articles 9 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Jupyter Notebook: how to comment out code in ipynb files ? Jerome BENOIT <sphericaltriangle@rezozer.net> - 2016-09-25 18:40 +0200
    Re: Jupyter Notebook: how to comment out code in ipynb files ? Paul Wise <pabs@debian.org> - 2016-09-26 03:20 +0200
      Re: Jupyter Notebook: how to comment out code in ipynb files ? Jerome BENOIT <sphericaltriangle@rezozer.net> - 2016-09-26 06:10 +0200
        Re: Jupyter Notebook: how to comment out code in ipynb files ? Jerome BENOIT <sphericaltriangle@rezozer.net> - 2016-09-26 06:20 +0200
          Re: Jupyter Notebook: how to comment out code in ipynb files ? Paul Wise <pabs@debian.org> - 2016-09-26 06:40 +0200
            Re: Jupyter Notebook: how to comment out code in ipynb files ? Jerome BENOIT <sphericaltriangle@rezozer.net> - 2016-09-26 07:10 +0200
              Re: Jupyter Notebook: how to comment out code in ipynb files ? Paul Wise <pabs@debian.org> - 2016-09-26 07:30 +0200
                Re: Jupyter Notebook: how to comment out code in ipynb files ? Jerome BENOIT <sphericaltriangle@rezozer.net> - 2016-09-26 18:40 +0200
                  Re: Jupyter Notebook: how to comment out code in ipynb files ? Paul Wise <pabs@debian.org> - 2016-09-26 19:20 +0200

#8893 — Jupyter Notebook: how to comment out code in ipynb files ?

FromJerome BENOIT <sphericaltriangle@rezozer.net>
Date2016-09-25 18:40 +0200
SubjectJupyter Notebook: how to comment out code in ipynb files ?
Message-ID<slkD8-uJ-1@gated-at.bofh.it>
Hello Forum,

Some code in an ipynb document have to be discarded because
it causes a privacy-breach-logo lintian error. Bring the involved
icon in the debian folder makes no senses because the code is meant
to be a URL example. Currently, I literally discard the involved code,
neverthless I would prefer to just comment it out in such a way it is
still available in the very source: any idea ?

Thanks in advance,
Jerome

[toc] | [next] | [standalone]


#8895

FromPaul Wise <pabs@debian.org>
Date2016-09-26 03:20 +0200
Message-ID<slsKl-5AJ-1@gated-at.bofh.it>
In reply to#8893
On Mon, Sep 26, 2016 at 12:22 AM, Jerome BENOIT wrote:

> Some code in an ipynb document have to be discarded because
> it causes a privacy-breach-logo lintian error. Bring the involved
> icon in the debian folder makes no senses because the code is meant
> to be a URL example. Currently, I literally discard the involved code,
> neverthless I would prefer to just comment it out in such a way it is
> still available in the very source: any idea ?

Which package and document are you talking about?

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[toc] | [prev] | [next] | [standalone]


#8896

FromJerome BENOIT <sphericaltriangle@rezozer.net>
Date2016-09-26 06:10 +0200
Message-ID<slvoR-7mC-5@gated-at.bofh.it>
In reply to#8895

On 26/09/16 04:05, Paul Wise wrote:
> Any particular reason you moved this thread off-list?

mistake

> 
> On Mon, 2016-09-26 at 03:43 +0100, Jerome BENOIT wrote:
> 
>> I am dealing with the nbsphinx package [0,1].
>>
>> The patch d/p/debianization-neutralize-lintian-privacy-breach-logo.patch in [1]
>> discard the undesirable material.
> 
> I don't know anything about the ipynb format but it sounds like this is
> a false positive, unless a user loading the ipynb file will
> automatically download an image from the Internet?
> 
so it not a false positive.

At one point, I was wondering if I could put a link to the favicon.ico of Debian.


Jerome

[toc] | [prev] | [next] | [standalone]


#8898

FromJerome BENOIT <sphericaltriangle@rezozer.net>
Date2016-09-26 06:20 +0200
Message-ID<slvyy-7r0-1@gated-at.bofh.it>
In reply to#8896

On 26/09/16 04:47, Jerome BENOIT wrote:
> 
> 
> On 26/09/16 04:05, Paul Wise wrote:
>> Any particular reason you moved this thread off-list?
> 
> mistake
> 
>>
>> On Mon, 2016-09-26 at 03:43 +0100, Jerome BENOIT wrote:
>>
>>> I am dealing with the nbsphinx package [0,1].
>>>
>>> The patch d/p/debianization-neutralize-lintian-privacy-breach-logo.patch in [1]
>>> discard the undesirable material.
>>
>> I don't know anything about the ipynb format but it sounds like this is
>> a false positive, unless a user loading the ipynb file will
>> automatically download an image from the Internet?
>>
> so it not a false positive.
> 
> At one point, I was wondering if I could put a link to the favicon.ico of Debian.
> 

Now, I am not so sure: in case it is a false positive, I guess that an lintian-override
can solve the issue.

Jerome

> 
> Jerome
> 

-- 
Jerome BENOIT, Ph.D. | jgmbenoit-at+rezozer*dot_net
http://www.rezozer.net/

[toc] | [prev] | [next] | [standalone]


#8899

FromPaul Wise <pabs@debian.org>
Date2016-09-26 06:40 +0200
Message-ID<slvRT-7A9-7@gated-at.bofh.it>
In reply to#8898
On Mon, Sep 26, 2016 at 12:03 PM, Jerome BENOIT wrote:

> Now, I am not so sure: in case it is a false positive

Can you upload source and binary packages somewhere so we can
determine the right answer?

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[toc] | [prev] | [next] | [standalone]


#8900

FromJerome BENOIT <sphericaltriangle@rezozer.net>
Date2016-09-26 07:10 +0200
Message-ID<slwkV-7ZA-1@gated-at.bofh.it>
In reply to#8899

On 26/09/16 05:37, Paul Wise wrote:
> On Mon, Sep 26, 2016 at 12:03 PM, Jerome BENOIT wrote:
> 
>> Now, I am not so sure: in case it is a false positive
> 
> Can you upload source and binary packages somewhere so we can
> determine the right answer?

I put them a few hours ago at the Debian Sage Tean [1] repository at Aliot [2].

In fact I have just checked, I think that now that the images can be gathered locally.

Thanks,
Jerome


[1] https://wiki.debian.org/DebianScience/Sage
[2] /home/groups/debian-science/htdocs/apt/sid-sage

> 

[toc] | [prev] | [next] | [standalone]


#8901

FromPaul Wise <pabs@debian.org>
Date2016-09-26 07:30 +0200
Message-ID<slwEh-85W-1@gated-at.bofh.it>
In reply to#8900
On Mon, Sep 26, 2016 at 12:53 PM, Jerome BENOIT wrote:

> I put them a few hours ago at the Debian Sage Tean [1] repository at Aliot [2].

Looks like these are not false positives and are definitely privacy
breaches (probably minor since I'm not sure anyone would read the
docs) and there is one privacy breach that lintian missed, an embedded
youtube video, see below.

> In fact I have just checked, I think that now that the images can be gathered locally.

Make sure that the gathered images are DFSG-free. The youtube video
definitely is not.

$ egrep -C3 src=\"https?:
nbsphinx-doc/usr/share/doc/python-nbsphinx-doc/html/code-cells.html
</pre></div>
</div>
<div class="container">
<img src="https://www.python.org/static/img/python-logo-large.png"/></div>
</div>
<div class="nbinput container">
<div class="highlight-none"><div class="highlight"><pre>
--
</pre></div>
</div>
<div class="container">
<img src="http://jupyter.org/assets/nav_logo.svg"/></div>
</div>
<div class="nbinput container">
<div class="highlight-none"><div class="highlight"><pre>
--
</pre></div>
</div>
<div class="container">
<img src="http://python.org/images/python-logo.gif"/></div>
</div>
</div>
<div class="section" id="Math">
--
<iframe
    width="400"
    height="300"
    src="https://www.youtube.com/embed/WAikxUGbomY"
    frameborder="0"
    allowfullscreen
></iframe></div>

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[toc] | [prev] | [next] | [standalone]


#8902

FromJerome BENOIT <sphericaltriangle@rezozer.net>
Date2016-09-26 18:40 +0200
Message-ID<slH6G-6aE-3@gated-at.bofh.it>
In reply to#8901
Hello Paul, thanks for your reply.

On 26/09/16 06:22, Paul Wise wrote:
> On Mon, Sep 26, 2016 at 12:53 PM, Jerome BENOIT wrote:
> 
>> I put them a few hours ago at the Debian Sage Tean [1] repository at Aliot [2].
> 
> Looks like these are not false positives and are definitely privacy
> breaches (probably minor since I'm not sure anyone would read the
> docs)

everyone read the documentation.


 and there is one privacy breach that lintian missed, an embedded
> youtube video, see below.

on unstable, the embedded youtube stuff was detected.

> 
>> In fact I have just checked, I think that now that the images can be gathered locally.
> 
> Make sure that the gathered images are DFSG-free. The youtube video
> definitely is not.

Out of curiosity, is there somewhere DFSG-free youtube video ?



> 
> $ egrep -C3 src=\"https?:
> nbsphinx-doc/usr/share/doc/python-nbsphinx-doc/html/code-cells.html
> </pre></div>
> </div>
> <div class="container">
> <img src="https://www.python.org/static/img/python-logo-large.png"/></div>
> </div>
> <div class="nbinput container">
> <div class="highlight-none"><div class="highlight"><pre>
> --
> </pre></div>
> </div>
> <div class="container">
> <img src="http://jupyter.org/assets/nav_logo.svg"/></div>
> </div>
> <div class="nbinput container">
> <div class="highlight-none"><div class="highlight"><pre>
> --
> </pre></div>
> </div>
> <div class="container">
> <img src="http://python.org/images/python-logo.gif"/></div>
> </div>
> </div>
> <div class="section" id="Math">
> --
> <iframe
>     width="400"
>     height="300"
>     src="https://www.youtube.com/embed/WAikxUGbomY"
>     frameborder="0"
>     allowfullscreen
>> </iframe></div>
> 

Thanks, Jerome

[toc] | [prev] | [next] | [standalone]


#8903

FromPaul Wise <pabs@debian.org>
Date2016-09-26 19:20 +0200
Message-ID<slHJn-6CT-11@gated-at.bofh.it>
In reply to#8902
On Tue, Sep 27, 2016 at 12:17 AM, Jerome BENOIT wrote:

> everyone read the documentation.

Ok, so when they load the documentation, their web browser will call
out to the Internet.

> on unstable, the embedded youtube stuff was detected.

Ah, good. I must have overlooked that.

> Out of curiosity, is there somewhere DFSG-free youtube video ?

Youtube doesn't have facilities for distributing video source
materials, but there are videos under free licenses there I guess. The
Blender videos and probably some Synfig videos come to mind.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web