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

option to ignore local? #28

Open
jonberliner opened this issue Aug 17, 2015 · 2 comments
Open

option to ignore local? #28

jonberliner opened this issue Aug 17, 2015 · 2 comments

Comments

@jonberliner
Copy link

when debugging a script, often I want to copy blocks of code and run interactively in the trepl. However, I can't run in the repl via copy+paste, because things declared local in a script cannot see each other when run in the repl. Is there, or is there any interest, in adding a flag to ignore local so script blocks can be tested in the repl?

@soumith
Copy link
Member

soumith commented Sep 14, 2015

it's an interesting proposition, and i've definitely had to remove local when copy-pasting code in the interpreter. if facilitated via a separate flag, seems like a useful addition.

@jesseengel
Copy link

Another perspective is to do a multiline paste, so that local scopes are not lost with every line. IPython does this nicely with %paste and %cpaste. Having a similar functionality in trepl would be clutch for many workflows. I tried this with iTorch 4.1.1 but couldn't get it to work.

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

3 participants