Add MacOS support #22
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes a wide range of changes across multiple files to improve the functionality, readability, and usability of the codebase. The most important changes include adding new tests, updating code cells for readability, and improving the handling of command parameters.
Main changes:
src/micropython_magic/octarine.py: Updated theoctarine.pyfile to pass commands as lists instead of strings to therun_cmdmethod. [1] [2] [3] [4]src/micropython_magic/mpr.py: Updated thecmdparameter handling in the__init__,run_cmd, andcopy_cell_to_mcumethods. [1] [2] [3] [4]src/micropython_magic/interactive.py: Improved type safety and clarity in theipython_runanddo_outputmethods. [1] [2]Updated samples:
samples/plot_cpu_temp_rp2.ipynb: Updated theplot_cpu_temp_rp2.ipynbsample notebook to indicate that certain code cells were not executed and removed their outputs. [1] [2] [3]samples/stop_cell.ipynb: Updated thestop_cell.ipynbsample notebook to reflect multiple executions of a code cell. [1] [2]samples/unstable/mem_info_list.ipynb: Updated theunstable/mem_info_list.ipynbsample notebook to disable file copying.samples/pico_model_rp2.ipynb: Added a new Jupyter Notebook file calledpico_model_rp2.ipynb.samples/multi_file_rp2.ipynb: Moved code frommulti_file.ipynbtomulti_file_rp2.ipynband commented out the import of theNeoPixelmodule. [1] [2]Other changes related to improved testability:
tests/test_samples.py: Modified thetest_samplesfunction and imported thesubprocessmodule. [1] [2]tests/cases/config_trace.ipynb: Added code to configureMicroPythonMagicoptions and generate a warning for an unrecognized config option.tests/transfer.ipynb: Modified code cells and introduction markdown cell, added a function that returns a complex number, and removed code cells that print complex numbers. [1] [2] [3] [4] [5] [6]src/micropython_magic/memoryinfo.py: Improved readability and formatting in thememoryinfo.pymodule. [1] [2] [3] [4] [5] [6]tests/cases/cell_mount.ipynb: Updated the file path to correctly interpret backslashes.