Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed bug in exporting notebook to HTML #12464

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

Merged
merged 1 commit into from
Jun 19, 2020
Merged

Conversation

techwithtim
Copy link

There are some notebooks that contain special lines or cells that cause NBConvert to fail to export them. If you'd like an example of such notebook I've attached a link to one. Previously when attempting to export this notebooks no error message would be displayed. In other words, I had not handled some edge cases where the export fails in one specific method (check files to see where). This PR simply handles the case where the export fails and displays the appropriate error message to the user.

Link to download notebook you can use to Repro: https://microsoft.sharepoint.com/teams/python/Shared%20Documents/test%20.ipynb%20notebooks/Core_Learning_Algorithms.ipynb

Simply open the notebook and try to export it to .html (you will need the latest master branch changes).

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).
  • The wiki is updated with any design decisions/details.

@techwithtim techwithtim self-assigned this Jun 19, 2020
@techwithtim techwithtim added no-changelog No news entry required bug Issue identified by VS Code Team member as probable bug labels Jun 19, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@techwithtim techwithtim merged commit e7136b1 into microsoft:master Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants