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

希望能在解释器中使用 #1136

Closed
lsysyem opened this issue Jun 4, 2020 · 8 comments · Fixed by #1222
Closed

希望能在解释器中使用 #1136

lsysyem opened this issue Jun 4, 2020 · 8 comments · Fixed by #1222
Labels
feature request Suggest an idea on this project python Python engineering related welcome contribution
Milestone

Comments

@lsysyem
Copy link

lsysyem commented Jun 4, 2020

解释器中使用提示找不到源码

@TH3CHARLie
Copy link
Collaborator

Please use IPython as an interactive tool. The reason that cannot find source code in python IDLE, if I recall correctly, is related to cpython's IDLE implementation that does not cache source code while taichi's JIT compilation requires that source code.

@archibate archibate added feature request Suggest an idea on this project python Python engineering related welcome contribution labels Jun 4, 2020
@lsysyem
Copy link
Author

lsysyem commented Jun 4, 2020

请使用IPython作为交互式工具。如果我没记错的话,在python IDLE中找不到源代码的原因与cpython的IDLE实现有关,该实现不缓存源代码,而taichi的JIT编译需要该源代码。

我其实想在houdini里试试,但是ipython不行

@TH3CHARLie
Copy link
Collaborator

我其实想在houdini里试试,但是ipython不行

Being able to use python within houdini would be a cool feature to have, I will mention this with other developers and see if there's anything we can do to improve this.

@liaopeiyuan
Copy link
Contributor

Kinda tangent to this topic, I've had issues with Taichi while debugging in Jupyter Notebook, which I think has to do with the way jupyter's kernel is run. I feel like a lot of newbies (like me) tend to use Jupyter Notebook to play around with libraries, so maybe we can do something about it too.

@TH3CHARLie
Copy link
Collaborator

TH3CHARLie commented Jun 4, 2020

Kinda tangent to this topic, I've had issues with Taichi while debugging in Jupyter Notebook, which I think has to do with the way jupyter's kernel is run. I feel like a lot of newbies (like me) tend to use Jupyter Notebook to play around with libraries, so maybe we can do something about it too.

Would you mind elaborating on what exactly happened when debugging in jupyter notebook? because there is another student reporting jupyter kernel fails after running taichi.

@liaopeiyuan
Copy link
Contributor

I didn't remember the exact details to reproduce the errors, but the weird things include:

  • Jupyter kernel dying instead of throwing error/exception
  • Unable to execute different taichi kernels across cells (weird exceptions after executing the first cell)
  • Unable to run a single taichi kernel (print statement has no effect/entries in matrices are not updated)

@TH3CHARLie
Copy link
Collaborator

I didn't remember the exact details to reproduce the errors, but the weird things include:

  • Jupyter kernel dying instead of throwing error/exception
  • Unable to execute different taichi kernels across cells (weird exceptions after executing the first cell)
  • Unable to run a single taichi kernel (print statement has no effect/entries in matrices are not updated)

Thanks for sharing, this is super useful for locating the bugs. I'll try them accordingly. And when next time these weird situations happen, please be sure to record them and open an issue on that.

@dongx17-THU
Copy link

请使用IPython作为交互式工具。如果我没记错的话,在python IDLE中找不到源代码的原因与cpython的IDLE实现有关,该实现不缓存源代码,而taichi的JIT编译需要该源代码。

我其实想在houdini里试试,但是ipython不行

同样遇到了houdini中跑taichi需要ipython的问题,请问楼主后边有好的解决方法么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea on this project python Python engineering related welcome contribution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants