Re: Spyder for a Newbie (to Spyder)

1,297 views
Skip to first unread message

David

unread,
Nov 27, 2012, 11:59:47 PM11/27/12
to spyd...@googlegroups.com

  • I don't know the keyboard bindings for some things, like completion, and I am not sure where to find them.  I guessed that control-space might do something, but I don't know what other things work.
Go to Tools->Preferences->Keyboard Shortcuts
  • I love that the "Object inspector" will show documentation for objects, but how do I get it to inspect an object other than typing it in?  There doesn't seem to be an menu option for that.
The object inspector is able to inspect any of the packages installed on your system. Given the many packages that come even just with the basic python, a menu which included all these would be unwieldy. You can try the oneline help widget instead, available as View->Windows and Toolbars->Online Help
 
Am I missing a good tutorial on how to get started with things?  I guess I am almost figuring things out as I write this, but it hasn't been totally intuitive.

Sim

Carlos Córdoba

unread,
Jun 8, 2013, 12:02:55 PM6/8/13
to spyd...@googlegroups.com
Hi Gleen,

Our project facilities are very simple at this moment, nothing like
Eclipse or other IDEs. Our projects provide things like:

a) A preferential view of the directory where you have your project.

b) It's own PYTHONPATH

c) Some integration with git and mercurial.


To create a project you need to follow these steps:

1. Go to:

View > Windows and toolbars > Project Explorer

2. In the pane that opens to the left you need to click on the folder
icon on the top.

3. Then you need to select a directory for your workspace, which in your
case has to be the parent directory of your project's dir.

4. After that, you need to do a right-click on the Project Explorer
pane, and then go to

Import > An existing directory

to select your project's dir. If everything went correctly, then you
should see your project's files in the pane.

We know this is a bit cumbersome and we plan to provide a simpler way to
create projects in the future. Also I have to tell you that we don't
have javascript syntax-highlighting right now, but we plan to add it in
2.2.1.

Cheers,
Carlos

El 04/06/13 14:02, Glenn Nelson escribió:
> Another newbie joins with plaintive cry for help. I am struggling to
> understand Spyder project with existing source code. I have Python CGI
> running in Apache (forced to do it this way). I need a good editor
> with source browser - I don't have need (yet) for more advanced IDE
> capabilities. In the past I used Netbeans for my Python work (since I
> come from Java), but NB v.7 has totally dropped Python support. I
> never did get used to Eclipse.
>
> My work setup is this:
> - local Apache server with Python CGI.
> - I edit the py files in place and test directly with web browser.
> - When ready for new release, copy files from Apache to local dir and
> commit to subversion.
>
> So I need to create a project that contains the files in the Apache
> deployment tree. I want to add html, javascript and CSS files to the
> project, too.
> I cannot figure out how all this is supposed to be done in Spyder.
> Also how would I manage another Python project that has a different
> home directory?
> My Netbeans experience of a project is that it is equivalent to a
> collection of source directories. The source directories can be
> scattered around - they do not need to have the same parent dir. The
> project file is stored in a different, arbitrary location. Workspace
> is not a concept I have dealt with.
>
> Pearls of wisdom please?
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spyderlib?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Glenn Nelson

unread,
Jun 9, 2013, 10:58:28 AM6/9/13
to spyd...@googlegroups.com
Thank you Carlos. The key step that I was missing is that the workspace has to be in the parent dir of the existing sources. This is fine and makes plenty of sense, it's just not what I expected. I'm now happily exploring my project with Spyder.
Reply all
Reply to author
Forward
0 new messages