-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
how to create new "type" pipe, queue, and stack in ipython interactive namespace #11842
Comments
You want to look at Python documentation, and look at threading, subprocess... etc. If you are using IPython more as a shell, I would suggest https://xon.sh/ which does have some of these features. |
Thank you for your response. I think my issue has to do with REPL (Read,
Execute, Print, Loop). I tried to see if there were alternatives, like
read fork print loops. :-) I see that to be more interactive with the
variables, I could have infinite loops interact with the variables and the
terminal share time with the variables and not have the REPL execute only
one infinite loop at a time. So if I have a scanner or a sensor feeding
information in an infinite loop, I could use the terminal to create another
loop or execute another command. I would like to stay with one language
used for modeling instead of using shell commands and a slow file system
with blocking.
I have imported IPython as ip and was able to see the get_ipython() but not
the ip.user_ns. I just have a general comment here about reading the
documentation, I couldn't figure out any perimeters or examples to try.
Even if I have access or get the handle, I don't see what I could do to
help my problem above. Is it possible to get ipython to run an infinite
loop and then call another ipython for a terminal and the first ipython is
named in the namespace?
Thank you for your time.
…On Sat, Aug 3, 2019 at 3:10 PM Matthias Bussonnier ***@***.***> wrote:
You want to look at Python documentation, and look at threading,
subprocess... etc.
you can get a handle to IPython itself using ip.get_ipython() (injected
in builtins), and then access ip.user_ns, which is the user namespace.
If you are using IPython more as a shell, I would suggest https://xon.sh/
which does have some of these features.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11842?email_source=notifications&email_token=ACMZKI4QMJX6XA554WQJOWLQCX63RA5CNFSM4II6YEU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PWSGY#issuecomment-517957915>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACMZKI3WJKCZ7MHPNUVLQDDQCX63RANCNFSM4II6YEUQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This maybe a request for further development, but I would find it very useful to be able to have processes running in the background as pipes, queues, and stacks in the interactive namespace the the ability to turn on and off like a terminal process run/kill.
Any suggestions or comments?
The text was updated successfully, but these errors were encountered: