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

Update to 2.3.1 #6

Merged
merged 26 commits into from
Jan 25, 2021
Merged

Update to 2.3.1 #6

merged 26 commits into from
Jan 25, 2021

Conversation

jpugliesi
Copy link

@jpugliesi jpugliesi commented Jan 25, 2021

Upgrades papermill to 2.3.1

This contains a fix to an issue introduced in a change to nbformat (see this papermill issue) that will raise an error like:

Notebook JSON is invalid: Additional properties are not allowed ('id' was unexpected)

I'm not sure if this was manifested due to this recent nbformat version bump: https://github.com/viaduct-ai/vml-py/pull/355

MSeal and others added 25 commits August 17, 2020 17:13
* Powershell translator added.
* Add Translator.inspect

* Apply changes following review

Co-authored-by: Frédéric Collonval <[email protected]>
Convert `Path` to `str` when received. Fixes nteract#543.
Update extending-entry-points.rst
Cleanup of CoC in CONTRIBUTING.md
set base docs python to 3 in tox.ini
typo fix in binder/cli-simple/cli_example.ipynb
* prevent exception when paramaters yaml is empty

Fix nteract#558

* add cli test for empty parameters yaml
Comment on lines +13 to +31
def any_tagged_cell(nb, tag):
"""Whether the notebook contains at least one cell tagged ``tag``?

Parameters
----------
nb : nbformat.NotebookNode
The notebook to introspect
tag : str
The tag to look for

Returns
-------
bool
Whether the notebook contains a cell tagged ``tag``?
"""
return any([tag in cell.metadata.tags for cell in nb.cells])


def find_first_tagged_cell_index(nb, tag):

Choose a reason for hiding this comment

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

We could probably use these in our papermill wrapper

Copy link
Author

Choose a reason for hiding this comment

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

truth

@@ -377,6 +547,8 @@ def assign(cls, name, str_val):
papermill_translators.register("matlab", MatlabTranslator)
papermill_translators.register(".net-csharp", CSharpTranslator)
papermill_translators.register(".net-fsharp", FSharpTranslator)
papermill_translators.register(".net-powershell", PowershellTranslator)
papermill_translators.register("pysparkkernel", PythonTranslator)

Choose a reason for hiding this comment

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

What about the sparkkernel and SparkK kerenels?

Copy link
Author

Choose a reason for hiding this comment

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

gp - registered

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.