Skip to content

Commit

Permalink
Update interactive_context.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m2kar authored Jun 2, 2020
1 parent d8dd07b commit e171fe0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def export_to_pipeline(self, notebook_filepath: Text, export_filepath: Text,
absl.logging.info('Exporting contents of %s to %s with %s runner.',
notebook_filepath, export_filepath, runner_type)

with open(notebook_filepath,encoding="utf-8") as notebook_f,\
open(export_filepath, 'w',encoding="utf-8") as export_f:
with open(notebook_filepath, encoding="utf-8") as notebook_f,\
open(export_filepath, 'w', encoding="utf-8") as export_f:
notebook = nbformat.read(notebook_f, nbformat.NO_CONVERT)
cells = notebook['cells']
code_cells = (cell for cell in cells if cell['cell_type'] == 'code')
Expand Down

0 comments on commit e171fe0

Please sign in to comment.