Unable to run the Player on Spyder and VSCode #96
-
Hi import kineticstoolkit.lab as ktk
markers = ktk.kinematics.read_c3d_file(
ktk.doc.download('kinematics_racing_full.c3d')
)
viewing_options = {
'zoom': 3.5,
'azimuth': 0.8,
'elevation': 0.16,
'translation': (0.2, -0.7)
}
player = ktk.Player(markers, **viewing_options)
player.to_html5(start_time=0, stop_time=10)
Can anyone help me to make it work in Spyder and VSCode ? I am using MacOS BigSur (Intel silicon). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @rogergallart Thanks for the detailed question. We will narrow down your issue until it works. First, just to clarify, the last line ( Now, for your issue. Please start an IPython console in the terminal:
then:
Does the interactive player open? |
Beta Was this translation helpful? Give feedback.
Hello @rogergallart
Thanks for the detailed question. We will narrow down your issue until it works.
First, just to clarify, the last line (
player.to_html5(start_time=0, stop_time=10)
) is not needed. It's only needed for jupyter-based environments (such as the website) and provides only a non-interactive experience. This is the only line that requires ffmpeg, but since it's only useful for Jupyter, I decided to not require it as a dependency (I may revisit this choice someday).Now, for your issue. Please start an IPython console in the terminal:
then: