Deeplabcut: how to use iPython

Created on 24 Apr 2020  Â·  4Comments  Â·  Source: DeepLabCut/DeepLabCut

Your Operating system and DeepLabCut version

I am using WIN 10 OS. Anaconda 2020 python 3.7 env DeepLabCut 2.x.

Please complete the following information about your system:

OS: [Windows 10]
DeepLabCut Version 2x (please check with import deeplabcut, deeplabcut.__version__)
Browser [chrome]

Describe the problem
Could not load iPython -- Nothing happens if I run this deeplabcut.create_new_project(‘project_name’,‘experimenter’, [‘path of video 1’,‘path of video2’,...])

image

Additional context
Add any other context about the problem here.

question

Most helpful comment

Thank you so much!

All 4 comments

I suppose it throws an error, rather than "nothing"... but anyway, did you run import deeplabcut first?

You are right! But if I run deeplabcut.create_new_project(‘project_name’,‘experimenter’, [‘path of video 1’,‘path of video2’,...])---with my computer directory, nothing happens!

I did run run 'import deeplabcut' and closed anaconda prompt and then restarted. Do I need to run this command every time I start Anaconda prompt?

Yes, you need to always import the package first - this is true for any python package.

Here is a resource that is helpful: https://realpython.com/python-modules-packages/

I would also suggest if you are just starting with DLC, you

(1) check out this "course": https://github.com/DeepLabCut/DeepLabCut-Workshop-Materials/blob/master/summer_course2020.md

(2) and always work through the DEMO's first; they show the minimal code required to run things: https://github.com/AlexEMG/DeepLabCut/blob/master/examples/README.md

Thank you so much!

Was this page helpful?
0 / 5 - 0 ratings