question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Erroneous warning

See original GitHub issue
from ploomber import DAG
from ploomber.tasks import ShellScript, PythonCallable
from ploomber.products import File
from ploomber.executors import Parallel

from ploomber.spec import DAGSpec
spec = DAGSpec('./pipeline.yaml')
dag = spec.to_dag()
# dag.executor = Parallel()
build = dag.build(force=True)

When running this code I get this output and warning:

  0%|          | 0/7 [00:00<?, ?it/s]

Executing:   0%|          | 0/6 [00:00<?, ?cell/s]

Executing:   0%|          | 0/7 [00:00<?, ?cell/s]

Executing:   0%|          | 0/7 [00:00<?, ?cell/s]

Executing:   0%|          | 0/7 [00:00<?, ?cell/s]

Executing:   0%|          | 0/7 [00:00<?, ?cell/s]

Executing:   0%|          | 0/7 [00:00<?, ?cell/s]

Executing:   0%|          | 0/8 [00:00<?, ?cell/s]

/home/prem/Documents/projects/ploomber/ploomberw/ploomber/src/ploomber/executors/serial.py:149: UserWarning: 
=========================== DAG build with warnings ============================
- NotebookRunner: linear-regression -> MetaProduct({'nb': File('output/...ession.ipynb')}) -
- /home/prem/Documents/projects/ploomber/ploomber-projectsw/ploomber-projects/guides/intro-to-ploomber/tasks/linear-regression.py -
Output '/home/prem/Documents/projects/ploomber/ploomber-projectsw/ploomber-projects/guides/intro-to-ploomber/output/linear-regression.ipynb' is a notebook file. nbconvert_export_kwargs {'exclude_input': True} will be ignored since they only apply when exporting the notebook to other formats such as html. You may change the extension to apply the conversion parameters
=============================== Summary (1 task) ===============================
NotebookRunner: linear-regression -> MetaProduct({'nb': File('output/...ession.ipynb')})
=========================== DAG build with warnings ============================

  warnings.warn(str(warnings_all))

here is the rest of the source: https://github.com/ploomber/projects/tree/master/guides/intro-to-ploomber

I’m not sure what the cause is, but I believe there should not be a warning here.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
edublancascommented, Aug 17, 2022

thanks for opening this!

here’s the background. the warning is this:

nbconvert_export_kwargs {‘exclude_input’: True} will be ignored since they only apply when exporting the notebook to other formats such as html. You may change the extension to apply the conversion parameters

we use nbconvert to convert ipynb files to html/pdf. nbconvert offers options such as excluding the source code in the output file (exclude_input=True); however, this setting is not applicable if the user selected ipynb as the output format (because we won’t have to use nbconvert for that); that’s why we show the warning: it’s telling the user that the setting is on, but it wont have any effect.

however, we recently allowed users to select multiple formats from a notebook task. for example, a notebook task might generate an output ipynb, html and pdf. Under this scenario, the warning should not be displayed.

Hence, the old condition for the warning was: is the output an ipynb file? but now it should become: is the only output an ipynb file?

0reactions
idomiccommented, Oct 6, 2022

@edublancas please review

Read more comments on GitHub >

github_iconTop Results From Across the Web

False Alarm Reduction Research - National Weather Service
A False Alarm occurs when a warning is issued for an expected hazard (such as a tornado), but that hazard never materializes. The...
Read more >
Report Incorrect Phishing Warning - Google Safe Browsing
If you received a phishing warning but believe that this is actually a legitimate page, please complete the form below to report the...
Read more >
Error and warning messages - IBM
Any errors or warning you receive can be viewed in either the Display Validate panel values panel or in the source file as...
Read more >
2018 Hawaii false missile alert - Wikipedia
The alert stated that there was an incoming ballistic missile threat inbound to Hawaii, advised residents to seek shelter, before it concluded: "This...
Read more >
Warning Options (Using the GNU Compiler Collection (GCC))
Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are risky or suggest there may have been an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found