Skip to content
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

Code style updates #251

Merged
merged 1 commit into from
Sep 12, 2021
Merged

Code style updates #251

merged 1 commit into from
Sep 12, 2021

Conversation

helena-intel
Copy link
Contributor

@helena-intel helena-intel commented Sep 11, 2021

  • black formatting
  • minor refactoring to use utils function where useful
  • remove check for installation of OpenVINO 2021.4 from some notebooks (is assumed now)
  • replaced /path/to/model_optimizer with mo
  • added parameters to many function calls
  • modified some descriptions and headers for clarification and consistency
  • added semicolons after plt.imshow() calls to prevent printing matplotlib axis info

Not intended to be complete - incremental improvements

More readable diff attached as PDF (created with nbdime and ansi2html)
diff.pdf

- black formatting
- minor refactoring to use utils function where useful
- remove check for installation of OpenVINO 2021.4 from some notebooks (is assumed now)
- added parameters to many function calls
- modified some descriptions and headers for clarification and consistency
- added semicolons after plt.imshow() calls to prevent printing matplotlib axis info

Not intended to be complete - incremental improvements
@@ -2,13 +2,16 @@
"cells": [
{
"cell_type": "markdown",
"id": "b875b31c",
Copy link
Contributor

Choose a reason for hiding this comment

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

@helena-intel just curious, but why do these ids show up now? Do we use them for something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a change in the notebook format. This is not the best link but gives some info and issues jupyterlab/jupyterlab#9729 (comment)

Copy link
Contributor

@ryanloney ryanloney left a comment

Choose a reason for hiding this comment

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

I tried each notebook and reviewed the changes. LGTM

@helena-intel
Copy link
Contributor Author

I tried each notebook and reviewed the changes. LGTM

Thanks for trying them all!

@helena-intel helena-intel merged commit e6312a4 into openvinotoolkit:main Sep 12, 2021
@helena-intel helena-intel deleted the notebook-updates branch December 10, 2021 00:55
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.

None yet

2 participants