Skip to content

Adding-function-call-to-cell#18

Open
bhagavansprasad wants to merge 1 commit intoremykarem:masterfrom
bhagavansprasad:patch-1
Open

Adding-function-call-to-cell#18
bhagavansprasad wants to merge 1 commit intoremykarem:masterfrom
bhagavansprasad:patch-1

Conversation

@bhagavansprasad
Copy link
Copy Markdown

Adding function call/invocation" in the same cell where function is defined

  • Append the function call at the end of the each function

  • This avoids efforts of writing statement of calling the function for every cell

  • p2j behavior before and after for file

  • strings.py

def strings_printing_01(a=20, b=20):
    print("Hello world-1")
    print("Hello world-2")

def strings_printing_02() -> None:
    print("Hello world-1")
    print("Hello world-2")

Before patch strings.ipynb

def strings_printing_01(a=20, b=20):
    print("Hello world-1")
    print("Hello world-2")

def strings_printing_02() -> None:
    print("Hello world-1")
    print("Hello world-2")

After patch strings.ipynb

def strings_printing_01(a=20, b=20):
    print("Hello world-1")
    print("Hello world-2")

strings_printing_01()

def strings_printing_02() -> None:
    print("Hello world-1")
    print("Hello world-2")

strings_printing_02()

Adding function call/invocation" in the same cell where function is defined

* Append the function call at the end of the each function
* This avoids efforts of writing statement of calling the function for every cell
@bhagavansprasad
Copy link
Copy Markdown
Author

Please do review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant