Skip to content
/ cmx-python Public

common mark for python, a module that turns your python module into a document in markdown

License

Notifications You must be signed in to change notification settings

cmx/cmx-python

Repository files navigation

Introducing CMX

REPL with Python Scripts via live documents.

See CMX In Action

  • insert a screencast gif here

this works just like a standard jupyter notebook. Only code you include in a with doc: block would be shown. The row context arranges the result side ways (via html) but it shows as a list on GitHub due to css restrictions.

for i in range(10):
    doc.print(i, end=' ')
0 1 2 3 4 5 6 7 8 9 

Installation

You can install this package from PyPI under the cmx package name.

pip install cmx

Developing Plugins

You can develop plug-ins under the cmx-<> prefix

Discussion

Can we have a travel-back-in-time debugger that saves the stack at each frame?

To-dos

  • scope inspection component

Tomorrow

Done

  • simple text output
  • layout row
  • saving matplotlib figures
  • video component
    doc.video(frames, f"videos/cats.gif")
  • image component
  • table component
  • yaml component

About

common mark for python, a module that turns your python module into a document in markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published