Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding-function-call-to-cell #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bhagavansprasad
Copy link

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
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