microsoft / jupyter-core

Library for writing Jupyter kernels in .NET Core
MIT License
108 stars 23 forks source link

Allow multiple magic commands per cell and improve whitespace handling #50

Closed rmshaffer closed 4 years ago

rmshaffer commented 4 years ago

This PR modifies the BaseEngine in jupyter-core to support the presence of multiple magic and/or help commands in a single cell execution. It also allows arguments for magic commands to span multiple lines.

The existing parsing logic from BaseEngine has been moved into a new InputParser class, the new functionality has been added there, and tests for the new class have also been added.