[WIP] Contributing a few examples to etsdemo#359
Conversation
….py and define a function in the package that returns information about the data files
I'd very much prefer not duplicating the examples because of the documentation links. We should try to update the documentation source so that we can move the examples instead of duplicating them. There are two possible solutions to solving the import issue: |
See #379 |
|
superseded by #380 |
closes #320
In this PR I currently attempt to contribute a few examples to etsdemo. To do so, I added the entry point to
setup.py, defined a function in the package to return info about the files, and copied the examples over to sit inside the package.Additionally, I removed the logging related code from the examples that were copied into the package.
I copied not moved the examples because I believe the documentation has links to them currently.
Currently, the examples do not run. As is mentioned on the issue, they assume a specific Python Path when they are run which causes problems. Modules seem to get renamed inside the file tree in the demo (e.g.
acmeis shown asAcme, underscores turn to spaces). When clicking run with therun.pyfile selected for theMOTDexample, the following traceback occurs:I'm unsure how to best resolve this problem. @kitchoi any suggestions would be appreciated. My only idea currently is to define the relevant classes, etc. in just one file (for MOTD this isnt too noisy), but this is not the right solution.
However, the current
hello_world.pyexample seems like it should run fine (no errors occur currently), but no output is printed. It only imports fromtraits.apiandenvisage.api. I'm unsure what the problem is here.