Skip to content

Add at least one output to the start notebook #6360

Merged
senecameeks merged 2 commits intoquantumlib:masterfrom
senecameeks:master
Nov 27, 2023
Merged

Add at least one output to the start notebook #6360
senecameeks merged 2 commits intoquantumlib:masterfrom
senecameeks:master

Conversation

@senecameeks
Copy link
Copy Markdown
Collaborator

The tensorflow import tool will skip trying to run any notebook that has any output, and instead publishes the notebook as is to the website. This includes a print of a simple circuit to get around the import tool.

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@senecameeks
Copy link
Copy Markdown
Collaborator Author

To clarify-- currently the import tool tries to execute the notebook since there is no output and fails (the engine api isn't enabled to run for the tensorflow-testing project). When it fails, the notebook isn't published to the website
If there is any output included (what the PR does and what we want), the import tool will skip trying to execute the notebook and publish it as is.

Copy link
Copy Markdown
Collaborator

@verult verult left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@senecameeks
Copy link
Copy Markdown
Collaborator Author

cc: @MichaelBroughton , my comment above might be helpful for future attempts to import notebooks to the website.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b5b3b74) 97.84% compared to head (21f6d1c) 97.84%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6360   +/-   ##
=======================================
  Coverage   97.84%   97.84%           
=======================================
  Files        1110     1110           
  Lines       96690    96690           
=======================================
  Hits        94606    94606           
  Misses       2084     2084           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@senecameeks senecameeks merged commit 7f47e13 into quantumlib:master Nov 27, 2023
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