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

function overwrite #7

Open
mlandis opened this issue Jan 24, 2019 · 0 comments
Open

function overwrite #7

mlandis opened this issue Jan 24, 2019 · 0 comments

Comments

@mlandis
Copy link
Member

mlandis commented Jan 24, 2019

jembrown [11:58 PM]
Nope, doesn't seem so. For instance, this function definition works fine with the command-line version, but suppresses output in Jupyter (at least for me):
Untitled
function test () { # test comments
print("test")
}

jembrown [12:34 AM]
One other thing I noticed - if you call the same function definition twice on the command line, it prompts you to ask if you want to overwrite the previous definition. But in Jupyter it will hang, because you can't respond to the prompt.

jembrown [9:54 AM]
Update: this behavior can be avoided by adding clear(<FUNCTION_NAME>) right above the function definition.

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

No branches or pull requests

1 participant