Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can existing files be added to a Spyder project? #3099

Closed
jandyman opened this issue Apr 10, 2016 · 6 comments
Closed

Can existing files be added to a Spyder project? #3099

jandyman opened this issue Apr 10, 2016 · 6 comments

Comments

@jandyman
Copy link

I'm trying to add an existing source file to a Spyder project. I cannot figure out how. Is it even possible? Is Project Explorer a common used tool or is it somewhat of an "orphan"?

  1. Open a new workspace
  2. Create a new project
  3. Look for ways to import/add an existing file.
  • Spyder Version: 3.0 beta
  • Python Version: 3.5.1
  • Operating system: Mac El Capitan
@goanpeca
Copy link
Member

@jandyman thanks for your input.

Projects is being reworked as part of the 3.0 release but it is note yet fully implemented in current beta. PRs are on the way.

@jandyman
Copy link
Author

Excellent and thanks for the prompt reply. I'll use other techniques until a PR.

  • Andy

@ccordoba12 ccordoba12 added this to the v3.0beta4 milestone Apr 10, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0beta5, v3.0beta6 Aug 8, 2016
@ccordoba12
Copy link
Member

This will be solved as part of #3377. Our new projects are attached to a directory, so you need to add files to a project, you just add them to the directory.

@JoshuaC3
Copy link

JoshuaC3 commented May 17, 2017

If I am creating a python package with the following file structure:

antigravity
├── antigravity.py
└── __init__.py
test
└── test_antigravity.py

Where should I create the project? Under, above or level with antigravity or antigravity itself?

Also, what is intended to go in the project folder? Is it the test dir as well?

@ccordoba12
Copy link
Member

Where should I create the project? Under, above or level with antigravity or antigravity itself?

You should select the top most antigravity directory to be the root of your project.

Also, what is intended to go in the project folder? Is it the test dir as well?

That depends on what you want, but usually tests are part of the project too.


All of this would be clearer and more intuitive than it is now, when we introduce template projects (in Spyder 4). Thanks for your patience until then.

@JoshuaC3
Copy link

JoshuaC3 commented May 17, 2017

I was worried you would say this,

That depends on what you want

The Template Projects sounds great. For now a best practice doc/cheat-sheet might be very useful.
Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants