Difference between revisions of "Setup Toga with Spyder"

From OpenCircuits
Jump to navigation Jump to search
(Created page with "= Setup Toga with Spyder = <!--- Next is an example external link [http://www.example.com link title] This page is really just examples of my commonly used markup == Hid...")
 
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Setup Toga with Spyder =
 
= Setup Toga with Spyder =
  
 +
This is an early draft not really ready for anybody but the author.
  
<!---
+
= Current Conclusion =
  
 +
'''Spyder and Toga do not play well together, dropping the attempt for now.'''
  
Next is an example external link
+
= Goal =
[http://www.example.com link title]
 
  
This page is really just examples of my commonly used markup
+
Get Toga running ( preferabley with editable source code ) in Spyder and IDE for Python
  
== Hidden ==
+
for Toga see: '''[https://toga.readthedocs.io/en/latest/ Toga — Toga 0.3.0.dev10 documentation ]'''
  
tuck stuff around you do not want to see unless editing
+
This has not been easy, still not working as of July 30: see this page history for other dates.
  
 +
Unfortunately I tried so many things that some steps and details are lost in the fog of time, here
 +
I will try to document the most important steps and results.
  
<!------------- what is hidden one liner -------------------
+
After a brief bout with windows, I decided to move to Ubuntu as a virtual machine ( Virtual Box ) under my Windows host.
Hidden
 
  
<!--------------start hidden ------------------
+
Installed 18.4
This is hidden
+
then installed Anaconda ( not everything seemed to work ) which did not get me Spyder.
 +
So I did a
  
<!-------------- end hidden ---------------------
+
      apt get spyder3
  
== Project ==
+
which seemed ok, I can now run Spyder
  
*Name:  Arduino Laser Cannon
+
= Try Again Again ( Attempt 3 ) =
*Status: in fairly early development, but is working.
+
New virtual machine ( clone under virtual box, takes 6 minutes, try to limit install to: https://toga.readthedocs.io/en/latest/how-to/contribute.html but no virtual environment, just a clean virtual machine ).
*Technology: Arduino
 
*Author: [[russ_hensel]] ( where you can find an email address to reach me )
 
*Summary: An Arduino controls two servo motors to aim a laser pointer. A terminal program is used to control the Arduino.
 
*Archive for the project will be posted.  See download section below.  
 
  
=== code example ===
+
This worked, a brief summary:
  
=== Input/Code ===
+
*Git config and download  --> went well.
 +
*pip install -e src/core  --> went fine.
 +
*pip install -e src/dummy  --> went fine.
 +
*pip install -e src/gtk --> fails
 +
*despite fail above python setup.py test  --> went fine.
 +
see log at [[Toga Spyder Log]]
 +
*tutorial at https://toga.readthedocs.io/en/latest/tutorial/tutorial-1.html ran in spyder after bunch of modification to sys.path.
 +
*tutorial at https://toga.readthedocs.io/en/latest/tutorial/tutorial-1.html ran in ipython after different modification to sys.path from above.
 +
see console at [[Toga Tutorial Log]]
  
<pre>
+
Next would like some guidance on errors and proper setup, planning to submit issues to Toga....
import gear
 
  
print"""Set some standards
+
= Earlier Attempts =
"""
 
  
washer_thick  = .1
+
Deleted, live in history if anyone cares.
gear_clear    = .5
 
gear_thick    = 5.
 
plate_thick    = 1.
 
  
a_stack    =  gear.PartStack( "two gears" )
 
  
 
</pre>
 
 
 
=== mark up examples ===
 
 
[[Image:con1.png|alt text]]
 
 
[[Image:con1.png|50px]]
 
 
[[Image:con1.png|50px|alt text is what]]
 
 
*[[PC-Microcontroller Communications]] discusses free terminal programs, most much better than hyperterminal.
 
*[http://as220.org/labs/pages/Arduino%20and%20Servo%20Motor%20Workshop Arduino and Servo Motor Workshop] Course link at AS220 Labs.
 
 
 
<!-------------- end hidden --------------------->
 
  
  
  
 
[[category:Python]]
 
[[category:Python]]

Latest revision as of 08:00, 9 August 2018

Setup Toga with Spyder

This is an early draft not really ready for anybody but the author.

Current Conclusion

Spyder and Toga do not play well together, dropping the attempt for now.

Goal

Get Toga running ( preferabley with editable source code ) in Spyder and IDE for Python

for Toga see: Toga — Toga 0.3.0.dev10 documentation

This has not been easy, still not working as of July 30: see this page history for other dates.

Unfortunately I tried so many things that some steps and details are lost in the fog of time, here I will try to document the most important steps and results.

After a brief bout with windows, I decided to move to Ubuntu as a virtual machine ( Virtual Box ) under my Windows host.

Installed 18.4 then installed Anaconda ( not everything seemed to work ) which did not get me Spyder. So I did a

     apt get spyder3 

which seemed ok, I can now run Spyder

Try Again Again ( Attempt 3 )

New virtual machine ( clone under virtual box, takes 6 minutes, try to limit install to: https://toga.readthedocs.io/en/latest/how-to/contribute.html but no virtual environment, just a clean virtual machine ).

This worked, a brief summary:

  • Git config and download --> went well.
  • pip install -e src/core --> went fine.
  • pip install -e src/dummy --> went fine.
  • pip install -e src/gtk --> fails
  • despite fail above python setup.py test --> went fine.

see log at Toga Spyder Log

see console at Toga Tutorial Log

Next would like some guidance on errors and proper setup, planning to submit issues to Toga....

Earlier Attempts

Deleted, live in history if anyone cares.