Timeline for How to interface with blender using IPython from terminal?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 17, 2013 at 1:11 | history | edited | ideasman42 | CC BY-SA 3.0 |
added 262 characters in body
|
Sep 16, 2013 at 22:52 | vote | accept | user1276 | ||
Sep 16, 2013 at 22:52 | comment | added | user1276 | OK, thank you so much ideasman42! I really appreciate all your help on this. I will mark this question as closed because you have thoroughly answered the solution that will likely work for most people. I have started a new question with the specific details of my problem, and I will proceed in the manner that you have suggested. | |
Sep 16, 2013 at 22:48 | comment | added | ideasman42 |
Not sure why this would fail: suggest to, install fresh blender, backup / remove your user preferences. Remove the "python" directory in the fresh blender install (forces use of system python), then try running blender from a console and running this in blenders text editor import IPython; IPython.embed() . Troubleshooting this stuff remotely is tricky but think this has the greatest chance of working.
|
|
Sep 16, 2013 at 5:10 | comment | added | user1276 | When I run in debug mode, here are the two debug logs printed to the terminal between exiting ipython and the blender gui loading: recalcob Cube recalcdata Cube | |
Sep 16, 2013 at 4:52 | comment | added | user1276 |
Quite sorry, without these: import code \n namespace = globals().copy() \n namespace.update(locals()) \n code.interact(local=namespace)
|
|
Sep 16, 2013 at 4:49 | comment | added | ideasman42 | @user1276 "without the other lines from the documentation", Please try to be specific or it becomes hard to provide useful feedback. | |
Sep 16, 2013 at 4:43 | comment | added | user1276 | I tried it without the other lines from the documentation and am given a prompt, but now blender runs with a completely blank screen... When I ctrl-D out of ipython, blender loads the gui into the window... Any ideas, ideasman? :) | |
Sep 16, 2013 at 4:42 | comment | added | user1276 | Yes, this is the command I tried exactly, except when I tried it with these two lines only I received "ImportError: No module named IPython". To solve this, I have three lines appending my local python site-packages to the blender python sys.path. I also included the lines mentioned in the documentation you linked to. | |
Sep 16, 2013 at 3:41 | comment | added | ideasman42 |
@user1276, define "running a script containing this at startup", I tried saving these 2 lines in a script, then running: blender --python test_ipython.py and ipython gave me a prompt in the terminal I started blender from.
|
|
Sep 16, 2013 at 3:28 | comment | added | user1276 | OK, I've tried running a script containing this at startup, but I get "RuntimeError: input(): lost sys.stdin" | |
Sep 16, 2013 at 1:36 | history | edited | gandalf3 | CC BY-SA 3.0 |
embed link
|
Sep 15, 2013 at 22:04 | history | answered | ideasman42 | CC BY-SA 3.0 |