Skip to content

Feature: add support for .py files in py:percent format #1437

@lukastk

Description

@lukastk

I submitted a PR here that adds support for .py files written using py:percent notation, essentially allowing for developing entirely using plain text files. I was inspired by this article, where the author also requested this feature.

To give a sample, it would look like this:

# %%
#|defaultexp my_module

# %%
#|export
def foo():
   print("Hello world")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions