Re: [spyder] How Can I go to a specific line number in Spyder for example line 1032?

2022-11-14 Thread Derek
Ctrl-L works for me.

On Sun, 13 Nov 2022 at 20:56, Scott Baker  wrote:

> For what?
>
> On Sun, Nov 13, 2022, 12:57 PM nade...@gmail.com 
> wrote:
>
>> Thank you
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/spyderlib/dc4d-42c4-42e8-be08-a128b5a62311n%40googlegroups.com
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/CAA_eA3DYVnTE3jAmiBFL8yOvpdJdwD_c6pWj79zy6MvZPm6uGw%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3PzNm%2BOFcipu4px-ScjmpY4-5rWUL9HFKjkfVV--eKXTg%40mail.gmail.com.


Re: [spyder] Re: No code in Outline pane

2021-06-11 Thread Derek
I agree that if a project is closed (or inactive or not activated) and then
you create a new Python file without one, then the outline works.

Again, this just reinforces the idea that the bug is related to how Spyder
is managing projects.

On Thu, 10 Jun 2021 at 16:45, Greg Bullock  wrote:

> I embraced the phrase *activated* after one of yfprojects's posts used
> it.  For me,
>
>- Project *activated* refers to the state of Spyder after using *Projects
>-> Open Project...*, and
>- Project *inactivated *or *not activated* refers to the state of
>Spyder after using *Projects -> Close Project* or before ever using 
> *Projects
>-> Open Project...*.
>
> Warm regards.
> Greg
>
>
> On Thursday, June 10, 2021 at 7:02:23 AM UTC-7 game...@gmail.com wrote:
>
>> I am not sure what he means by "activated"?
>>
>>  In the case you mention, surely files in a project that get moved into a
>> sub-folder of the project are still in the project? If you move them to a
>> folder outside of the project, then you are back at the case that I
>> described.
>>
>> Derek
>>
>> On Wed, 9 Jun 2021 at 15:20, yfprojects  wrote:
>>
>>> Hi Derek,
>>> this is the behaviour I initially saw, but I moved the files in my
>>> project into a subfolder. Since then I see what Greg describes.
>>>
>>> Kind regards
>>> yfprojects
>>>
>>>
>>> game...@gmail.com schrieb am Mittwoch, 9. Juni 2021 um 06:23:49 UTC:
>>>
>>>> I found as soon as I saved a file that was in a project to a
>>>> non-project location e.g the Desktop, and then opened it as a 'stand-alone'
>>>> file from that new location, all the outlining worked.  So this is clearly
>>>> a bug related to how Syder is managing projects.
>>>>
>>>>
>>>> On Tue, 8 Jun 2021 at 21:52, Greg Bullock  wrote:
>>>>
>>>>> My results are slightly different.  For me, the issue occurs for a
>>>>> file that happens to be within a project folder, even if that project is
>>>>> not activated (and even if a different project is activated), but not for
>>>>> the same file when it's copied outside a project folder, even if a project
>>>>> is activated.
>>>>>
>>>>> Perhaps these are two different problems, yours and mine.
>>>>>
>>>>> Warm regards.
>>>>> Greg
>>>>>
>>>>> On Tuesday, June 8, 2021 at 7:35:05 AM UTC-7 yfprojects wrote:
>>>>>
>>>>>>  Hi,
>>>>>>
>>>>>> I think,  I also had the case that a file worked if there is no
>>>>>> project activated, but did not work if the project the file was in was
>>>>>> activated. But I am not able to reproduce this because I changed the 
>>>>>> files
>>>>>> since then.
>>>>>> It would be great to determine whether this bug is inside the Spyder
>>>>>> code or inside the language server's code. The problem is that I wasn't
>>>>>> able to find out how to talk to the language server directly.
>>>>>>
>>>>>> Kind regards
>>>>>> yfprojects
>>>>>>
>>>>>> grg.b...@gmail.com schrieb am Dienstag, 8. Juni 2021 um 00:37:59 UTC:
>>>>>>
>>>>>>> The issue seems to have something to do with whether files are in a
>>>>>>> project.
>>>>>>>
>>>>>>> Assume a file tree structure as follows:
>>>>>>> my_project/
>>>>>>> sparse_outline.py
>>>>>>> sparse_outline_2.py
>>>>>>> other_scripts/
>>>>>>> sparse_outline.py
>>>>>>>
>>>>>>> Here,
>>>>>>>
>>>>>>>- my_project/ is a folder with a Spyder project,
>>>>>>>- sparse_outline.py is one of the files that exhibits the issue
>>>>>>>where function, class, and method definitions don't appear in the 
>>>>>>> Outline
>>>>>>>pane,
>>>>>>>- sparse_outline_2.py is a copy of sparse_outline.py (just with
>>>>>>>a different name), and
>>>>>>>- other_scripts/ is a folder with yet another copy of
>>>>>>>sparse_outline.py but no Spyder project.
>>>>>>>
>>>

Re: [spyder] Re: No code in Outline pane

2021-06-10 Thread Derek
I am not sure what he means by "activated"?

 In the case you mention, surely files in a project that get moved into a
sub-folder of the project are still in the project? If you move them to a
folder outside of the project, then you are back at the case that I
described.

Derek

On Wed, 9 Jun 2021 at 15:20, yfprojects  wrote:

> Hi Derek,
> this is the behaviour I initially saw, but I moved the files in my project
> into a subfolder. Since then I see what Greg describes.
>
> Kind regards
> yfprojects
>
>
> game...@gmail.com schrieb am Mittwoch, 9. Juni 2021 um 06:23:49 UTC:
>
>> I found as soon as I saved a file that was in a project to a non-project
>> location e.g the Desktop, and then opened it as a 'stand-alone' file from
>> that new location, all the outlining worked.  So this is clearly a bug
>> related to how Syder is managing projects.
>>
>>
>> On Tue, 8 Jun 2021 at 21:52, Greg Bullock  wrote:
>>
>>> My results are slightly different.  For me, the issue occurs for a file
>>> that happens to be within a project folder, even if that project is not
>>> activated (and even if a different project is activated), but not for the
>>> same file when it's copied outside a project folder, even if a project is
>>> activated.
>>>
>>> Perhaps these are two different problems, yours and mine.
>>>
>>> Warm regards.
>>> Greg
>>>
>>> On Tuesday, June 8, 2021 at 7:35:05 AM UTC-7 yfprojects wrote:
>>>
>>>>  Hi,
>>>>
>>>> I think,  I also had the case that a file worked if there is no project
>>>> activated, but did not work if the project the file was in was activated.
>>>> But I am not able to reproduce this because I changed the files since then.
>>>> It would be great to determine whether this bug is inside the Spyder
>>>> code or inside the language server's code. The problem is that I wasn't
>>>> able to find out how to talk to the language server directly.
>>>>
>>>> Kind regards
>>>> yfprojects
>>>>
>>>> grg.b...@gmail.com schrieb am Dienstag, 8. Juni 2021 um 00:37:59 UTC:
>>>>
>>>>> The issue seems to have something to do with whether files are in a
>>>>> project.
>>>>>
>>>>> Assume a file tree structure as follows:
>>>>> my_project/
>>>>> sparse_outline.py
>>>>> sparse_outline_2.py
>>>>> other_scripts/
>>>>> sparse_outline.py
>>>>>
>>>>> Here,
>>>>>
>>>>>- my_project/ is a folder with a Spyder project,
>>>>>- sparse_outline.py is one of the files that exhibits the issue
>>>>>where function, class, and method definitions don't appear in the 
>>>>> Outline
>>>>>pane,
>>>>>- sparse_outline_2.py is a copy of sparse_outline.py (just with a
>>>>>different name), and
>>>>>- other_scripts/ is a folder with yet another copy of
>>>>>sparse_outline.py but no Spyder project.
>>>>>
>>>>> I find the following results using Spyder 4.2.5:
>>>>>
>>>>> With my_project opened as a project and
>>>>> other_scripts/sparse_outline.py also opened for viewing, the Outline
>>>>> pane exhibits the issue on my_project/sparse_outline.py, but it
>>>>> behaves as expected on other_scripts/sparse_outline.py, showing
>>>>> function, class, and method definitions, as desired.
>>>>>
>>>>> Closing the project and reopening the files, I see the same thing.  The
>>>>> Outline pane exhibits the issue on my_project/sparse_outline.py, but
>>>>> it behaves as desired on other_scripts/sparse_outline.py.
>>>>>
>>>>> I made the copy sparse_outline_2.py to test whether there was some
>>>>> memory of the original sparse_outline.py in Spyder's
>>>>> my_project/.spyproject folder that was somehow complicit in whether
>>>>> the issue occurs.  Apparently not, as the Outline pane exhibits the issue
>>>>> with sparse_outline_2.py, with or without the project open.
>>>>>
>>>>> Regards.
>>>>> Greg
>>>>>
>>>>> On Thursday, May 27, 2021 at 12:40:04 AM UTC-7 yfprojects wrote:
>>>>>
>>>>>> Currently I also don't know any tests that could help solving the
>>>>>>

Re: [spyder] Re: No code in Outline pane

2021-06-09 Thread Derek
I found as soon as I saved a file that was in a project to a non-project
location e.g the Desktop, and then opened it as a 'stand-alone' file from
that new location, all the outlining worked.  So this is clearly a bug
related to how Syder is managing projects.


On Tue, 8 Jun 2021 at 21:52, Greg Bullock  wrote:

> My results are slightly different.  For me, the issue occurs for a file
> that happens to be within a project folder, even if that project is not
> activated (and even if a different project is activated), but not for the
> same file when it's copied outside a project folder, even if a project is
> activated.
>
> Perhaps these are two different problems, yours and mine.
>
> Warm regards.
> Greg
>
> On Tuesday, June 8, 2021 at 7:35:05 AM UTC-7 yfprojects wrote:
>
>>  Hi,
>>
>> I think,  I also had the case that a file worked if there is no project
>> activated, but did not work if the project the file was in was activated.
>> But I am not able to reproduce this because I changed the files since then.
>> It would be great to determine whether this bug is inside the Spyder code
>> or inside the language server's code. The problem is that I wasn't able to
>> find out how to talk to the language server directly.
>>
>> Kind regards
>> yfprojects
>>
>> grg.b...@gmail.com schrieb am Dienstag, 8. Juni 2021 um 00:37:59 UTC:
>>
>>> The issue seems to have something to do with whether files are in a
>>> project.
>>>
>>> Assume a file tree structure as follows:
>>> my_project/
>>> sparse_outline.py
>>> sparse_outline_2.py
>>> other_scripts/
>>> sparse_outline.py
>>>
>>> Here,
>>>
>>>- my_project/ is a folder with a Spyder project,
>>>- sparse_outline.py is one of the files that exhibits the issue
>>>where function, class, and method definitions don't appear in the Outline
>>>pane,
>>>- sparse_outline_2.py is a copy of sparse_outline.py (just with a
>>>different name), and
>>>- other_scripts/ is a folder with yet another copy of
>>>sparse_outline.py but no Spyder project.
>>>
>>> I find the following results using Spyder 4.2.5:
>>>
>>> With my_project opened as a project and other_scripts/sparse_outline.py
>>> also opened for viewing, the Outline pane exhibits the issue on
>>> my_project/sparse_outline.py, but it behaves as expected on
>>> other_scripts/sparse_outline.py, showing function, class, and method
>>> definitions, as desired.
>>>
>>> Closing the project and reopening the files, I see the same thing.  The
>>> Outline pane exhibits the issue on my_project/sparse_outline.py, but it
>>> behaves as desired on other_scripts/sparse_outline.py.
>>>
>>> I made the copy sparse_outline_2.py to test whether there was some
>>> memory of the original sparse_outline.py in Spyder's
>>> my_project/.spyproject folder that was somehow complicit in whether the
>>> issue occurs.  Apparently not, as the Outline pane exhibits the issue with
>>> sparse_outline_2.py, with or without the project open.
>>>
>>> Regards.
>>> Greg
>>>
>>> On Thursday, May 27, 2021 at 12:40:04 AM UTC-7 yfprojects wrote:
>>>
 Currently I also don't know any tests that could help solving the
 problem. But if there is news on this issue
  I can tell you
 here.

 Kind regards

 yfprojects


 Am 26.05.21 um 21:05 schrieb Greg Bullock:

 The issue also persists with version 4.2.0
 * Spyder version: 4.2.0 None
 * Python version: 3.7.9 64-bit
 * Qt version: 5.12.9
 * PyQt5 version: 5.12.3
 * Operating System: Windows 10

 But the Outline Pane works as expected with version 4.1.5
 * Spyder version: 4.1.5 None
 * Python version: 3.7.9 64-bit
 * Qt version: 5.12.9
 * PyQt5 version: 5.12.3
 * Operating System: Windows 10

 Downgrading to version 4.1.5 also downgraded the python-language-server
 from 0.36.2 to  0.36.1, so that may also be complicit.

 I'm happy to perform any additional tests anyone may want to suggest,
 but for now I'll stick with version 4.1.5, as the Outline Pane is valuable
 to me (as is also the option to increase the number of lines in the
 History
 ).


 On Tuesday, May 25, 2021 at 3:31:03 PM UTC-7 Greg Bullock wrote:

> I confirm that the issue persists in version 5.0.3.
>
> * Spyder version: 5.0.3 None
> * Python version: 3.9.4 64-bit
> * Qt version: 5.12.9
> * PyQt5 version: 5.12.3
> * Operating System: Windows 10
>
> On Tuesday, May 25, 2021 at 1:42:47 PM UTC-7 Greg Bullock wrote:
>
>> Uninstalling Anaconda, deleting the .spyder-py3 folder (saving a
>> backup), then reinstalling Anaconda, did not resolve the problem.  Still 
>> no
>> code in the Outline Pane.
>>
>> On Tuesday, May 25, 2021 at 10:58:54 AM UTC-7 Greg Bullock wrote:
>>
>>> Activating a 

Re: [spyder] Re: Update Spyder? - how?

2021-06-02 Thread Derek
Note - if you are running version 4, you need to explicitly put in the
version:

conda install -c conda-forge spyder=5.0.3

Unfortunately, the code outline functionality is still not working in this
version.

On Tue, 1 Jun 2021 at 09:42, yfprojects  wrote:

> Hello,
>
> The default *anaconda channel* only has version 5.0.0. The community-led
> channel `conda-forge` already has version 5.0.3. To install spyder from
> that channel the following command should work inside the anaconda prompt:
>
> conda install -c conda-forge spyder
>
> Kind regards
> yfprojects
>
> lindsay.ar...@gmail.com schrieb am Montag, 31. Mai 2021 um 16:09:11 UTC:
>
>> Hi All,
>> After reporting the bug with obscurred icons in Spyder 5, I was told this
>> was fixed now.
>>
>> I don't understand how to update Spyder.
>>
>> I tried all things I read online:
>>
>> Anaconda Home > Spyder > Install
>> Anaconda Home > Spyder > Install Specific version
>> Anaconda Prompt > conda update sypder
>> Andaconda Prompt > run as admin > conda update spyder
>> Andaconda Prompt > conda update --name base conda
>> Anaconda Prompt > conda update all
>> Anaconda PowerShell Prompt > conda update sypder
>> Andaconda Prompt > run as admin > conda update spyder
>>
>> Can anyone please tell me the actual proper way to update it?
>> Thanks
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/04438703-4f25-4692-a246-67aeae35a7bdn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3Pt3HcNCHXVbcmTDeo4O-PGXjhbNc3xC6LsWW31G-%3DzUA%40mail.gmail.com.


[spyder] Re: No code in Outline pane

2021-05-21 Thread Derek Hohls
Not sure if this is the exactly same problem, but I posted an issue here 
- https://github.com/spyder-ide/spyder/issues/15640

However, they said it was fixed in 5.0.2, which is what you are running, so 
this could be something else.

On Friday, 21 May 2021 at 02:37:15 UTC+2 grg.b...@gmail.com wrote:

> The Outline pane is no longer showing the names of function and method 
> definitions or the starts of significant code blocks (e.g., if blocks, for 
> loops, etc.).
>
> It's showing only the beginnings of cells, e.g., comment lines that begin 
> with 
> #%% 
>
> This might be related to my recently upgrading to Spyder v 4.2.5 and to 
> 5.0.2 (on Windows 10), but I'm not sure.  Either way, not long ago, the 
> Outline pane used to show both, the cell  beginnings and the names of 
> function and method definitions (and sometimes additional code blocks).
>
> How to fix this?
>
> Regards.
> Greg
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/10d0bbe7-70d1-4843-b7e3-e8a321df7a3cn%40googlegroups.com.


Re: [spyder] Re: Code tree in Spyder 5?

2021-05-17 Thread Derek
OK, I see it in the "hamburger" menu for that panel.  Yes, it was checked.

i did report the problem and apparently it is fixed in the 5.0.2 release -
https://github.com/spyder-ide/spyder/issues/15640

On Mon, 17 May 2021 at 07:51, yfprojects  wrote:

> I am sorry. The checkbox is in the popup that pops up when the right mouse
> button is clicked on the outline widget.
>
> Kind regards
> yfprojects
>
> game...@gmail.com schrieb am Sonntag, 16. Mai 2021 um 13:43:04 UTC:
>
>> Hi
>>
>> WRT "Do you have the `Show special comments` checkbox ticked?" - I cannot
>> find that set of options anywhere in my Spyder setup - what is the menu
>> path to access that screen?
>>
>> Thanks.
>>
>> On Fri, 14 May 2021 at 08:44, yfprojects  wrote:
>>
>>> I did not show the main editing window with the actual code. But yes,
>>>> it's a normal Python file (in this case containing Django models - classes
>>>> - for an app). I use the # --- notation a lot to help ID sections of code
>>>> but that does not appear for any Python files I work on.
>>>>
>>>
>>> Do you have the `Show special comments` checkbox ticked?
>>> [image: Popup-In-Outline.png]
>>>
>>>
>>>
>>>> I looked at issue 14871 but that seems very specific to __init__.py
>>>> files whereas I experience this for every file.
>>>>
>>>
>>> I actually had the problem in some other files too but initially it only
>>> occured in some `__init__.py` files. If you think you have a different
>>> issue it would be great if you filed a new issue at spyder repository
>>> on github <https://github.com/spyder-ide/spyder/issues>.
>>>
>>> Kind regards
>>> yfprojects
>>>
>>>
>>> On Thu, 13 May 2021 at 19:51, yfprojects  wrote:
>>>>
>>>>> Hello Derek,
>>>>>
>>>>> the `Expand all` button does only expand if there are sub items of an
>>>>> tree item. That isn't the case in your screenshot.
>>>>> If the file does contain any *classes*, *functions*, *code cells* or *code
>>>>> blocks*, this is a bug. It could relate to this Issue on github
>>>>> <https://github.com/spyder-ide/spyder/issues/14871>.
>>>>> I would be interested in whether code cells *(created by `#%%`)* or
>>>>> code blocks *(created by `# -`) *are shown in the outline in case
>>>>> you add them.
>>>>>
>>>>> Kind regards
>>>>> yfprojects
>>>>>
>>>>> game...@gmail.com schrieb am Mittwoch, 12. Mai 2021 um 06:51:45 UTC:
>>>>>
>>>>>> I recently upgraded to Syder 5 and am now unable to see / access the
>>>>>> expandable code "tree" (outline) that was working in the previous 
>>>>>> version.
>>>>>>
>>>>>> This is all I can see (image below, showing what I see for a typical
>>>>>> Django models file) - what is needed to create/activate the code tree?
>>>>>>
>>>>>> [image: spy.png]
>>>>>>
>>>>>> Thanks
>>>>>> Derek
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>> 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 view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/spyderlib/5cfc378e-1fba-4c60-8488-232051edb1ebn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/spyderlib/5cfc378e-1fba-4c60-8488-232051edb1ebn%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/spyderlib/f48badb2-75a2-42cf-b301-1234a2bcfd84n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/spyderlib/f48badb2-75a2-42cf-b301-1234a2bcfd84n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/e2dac041-77a1-42d4-8cd2-730d00862157n%40googlegroups.com
> <https://groups.google.com/d/msgid/spyderlib/e2dac041-77a1-42d4-8cd2-730d00862157n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3PysLdvtpJG2ishAbLB6EraFxt41nEBPTJ97X56ZgNgfw%40mail.gmail.com.


Re: [spyder] Re: Code tree in Spyder 5?

2021-05-16 Thread Derek
Hi

WRT "Do you have the `Show special comments` checkbox ticked?" - I cannot
find that set of options anywhere in my Spyder setup - what is the menu
path to access that screen?

Thanks.

On Fri, 14 May 2021 at 08:44, yfprojects  wrote:

> I did not show the main editing window with the actual code. But yes, it's
>> a normal Python file (in this case containing Django models - classes - for
>> an app). I use the # --- notation a lot to help ID sections of code but
>> that does not appear for any Python files I work on.
>>
>
> Do you have the `Show special comments` checkbox ticked?
> [image: Popup-In-Outline.png]
>
>
>
>> I looked at issue 14871 but that seems very specific to __init__.py files
>> whereas I experience this for every file.
>>
>
> I actually had the problem in some other files too but initially it only
> occured in some `__init__.py` files. If you think you have a different
> issue it would be great if you filed a new issue at spyder repository on
> github <https://github.com/spyder-ide/spyder/issues>.
>
> Kind regards
> yfprojects
>
>
> On Thu, 13 May 2021 at 19:51, yfprojects  wrote:
>>
>>> Hello Derek,
>>>
>>> the `Expand all` button does only expand if there are sub items of an
>>> tree item. That isn't the case in your screenshot.
>>> If the file does contain any *classes*, *functions*, *code cells* or *code
>>> blocks*, this is a bug. It could relate to this Issue on github
>>> <https://github.com/spyder-ide/spyder/issues/14871>.
>>> I would be interested in whether code cells *(created by `#%%`)* or
>>> code blocks *(created by `# -`) *are shown in the outline in case
>>> you add them.
>>>
>>> Kind regards
>>> yfprojects
>>>
>>> game...@gmail.com schrieb am Mittwoch, 12. Mai 2021 um 06:51:45 UTC:
>>>
>>>> I recently upgraded to Syder 5 and am now unable to see / access the
>>>> expandable code "tree" (outline) that was working in the previous version.
>>>>
>>>> This is all I can see (image below, showing what I see for a typical
>>>> Django models file) - what is needed to create/activate the code tree?
>>>>
>>>> [image: spy.png]
>>>>
>>>> Thanks
>>>> Derek
>>>>
>>>>
>>>>
>>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/spyderlib/5cfc378e-1fba-4c60-8488-232051edb1ebn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/spyderlib/5cfc378e-1fba-4c60-8488-232051edb1ebn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/f48badb2-75a2-42cf-b301-1234a2bcfd84n%40googlegroups.com
> <https://groups.google.com/d/msgid/spyderlib/f48badb2-75a2-42cf-b301-1234a2bcfd84n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3PmWwY57NPDrcp0LPoXG86tyEraGnUGq-NjrJ%2By%2Bv6hBA%40mail.gmail.com.


Re: [spyder] Re: Code tree in Spyder 5?

2021-05-14 Thread Derek
Hi

I did not show the main editing window with the actual code. But yes, it's
a normal Python file (in this case containing Django models - classes - for
an app). I use the # --- notation a lot to help ID sections of code but
that does not appear for any Python files I work on.

I looked at issue 14871 but that seems very specific to __init__.py files
whereas I experience this for every file.

Any ideas on what else to try?

Thanks
Derek



On Thu, 13 May 2021 at 19:51, yfprojects  wrote:

> Hello Derek,
>
> the `Expand all` button does only expand if there are sub items of an tree
> item. That isn't the case in your screenshot.
> If the file does contain any *classes*, *functions*, *code cells* or *code
> blocks*, this is a bug. It could relate to this Issue on github
> <https://github.com/spyder-ide/spyder/issues/14871>.
> I would be interested in whether code cells *(created by `#%%`)* or code
> blocks *(created by `# -`) *are shown in the outline in case you add
> them.
>
> Kind regards
> yfprojects
>
> game...@gmail.com schrieb am Mittwoch, 12. Mai 2021 um 06:51:45 UTC:
>
>> I recently upgraded to Syder 5 and am now unable to see / access the
>> expandable code "tree" (outline) that was working in the previous version.
>>
>> This is all I can see (image below, showing what I see for a typical
>> Django models file) - what is needed to create/activate the code tree?
>>
>> [image: spy.png]
>>
>> Thanks
>> Derek
>>
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/5cfc378e-1fba-4c60-8488-232051edb1ebn%40googlegroups.com
> <https://groups.google.com/d/msgid/spyderlib/5cfc378e-1fba-4c60-8488-232051edb1ebn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3N2rjVo96fHS1G%3D306WkaE0VhFPHiatNKPU1b-ReXgpHw%40mail.gmail.com.


[spyder] Code tree in Spyder 5?

2021-05-12 Thread Derek
I recently upgraded to Syder 5 and am now unable to see / access the
expandable code "tree" (outline) that was working in the previous version.

This is all I can see (image below, showing what I see for a typical Django
models file) - what is needed to create/activate the code tree?

[image: spy.png]

Thanks
Derek

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3N4%2B5QKa1Bffuc98PmWQMygLSw7fJnbDLPGm2C5QesV7Q%40mail.gmail.com.


Re: [spyder] How do I configure Spyder to automatically save my edits?

2021-02-05 Thread Derek
I am curious to know if you'd stop using all Microsoft products because
they, too, were accessed by hackers (ref:
https://www.zdnet.com/article/solarwinds-hackers-accessed-microsoft-source-code/
)

It does seem that it was one very specific JetBrains product - TeamCity -
that was targeted.  It's unlikely that an IDE would be of much interest to
them.

Is there specific evidence of PyCharm having security flaws?

On Thu, 4 Feb 2021 at 17:42, Terrence-Monroe: Brannon <
thequietcen...@gmail.com> wrote:

> I am migrating away from PyCharm because of the security hack and one
> feature I miss is that it automatically saved my files.
>
> My research shows this is an open enhancement item
> ? Or is there a way to
> automatically save files that you have changed?
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/b6c99119-a528-4b4e-8817-ab614890e93fn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3MggzK1p4Q6zALwK67n9MaEGBN3xdi4JSgd4EtDNmPkXw%40mail.gmail.com.


Re: [spyder] Changing layout in the interface

2020-07-08 Thread Derek
Hi

Short of me reading the entire document; can you be more specific please?

On Tue, 7 Jul 2020 at 20:25, Mauricio Azálgara Bedoya 
wrote:

> You may browse the Spyder documentation available at
> https://docs.spyder-ide.org/.
> Regards,
>
> On Thu, Jul 2, 2020 at 3:24 PM Derek  wrote:
>
>> I'd like to be able to manually change where in the layout the various
>> panes appear as well as their sizes.  Can someone please point me to the
>> docs that describe how this can be done?
>>
>> Running 4.0.1
>>
>> Thanks
>> Derek
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/spyderlib/CAF1Wu3MEKK4p7pS276Jn3F3Q0%2BmAhyBQ5aO%3DXmF30ArvJC_d2g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/spyderlib/CAF1Wu3MEKK4p7pS276Jn3F3Q0%2BmAhyBQ5aO%3DXmF30ArvJC_d2g%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
>
> Atentamente,
> Mauricio Azálgara Bedoya
>
> Dirección: 120 Calle Lima | Int. A-1, Yanahuara
>
>04017 Arequipa
>
>PERU
>
> Móvil: ++51 998 050 690
>
> Teléfono: ++51 54 317 803
>
> Cuenta Skype: mazalgarab
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/CAFXHJRkFq7%3DUsHkHUxUMDb2OPjNPgm8iZ2%3DuVGOz8U07vn3K9A%40mail.gmail.com
> <https://groups.google.com/d/msgid/spyderlib/CAFXHJRkFq7%3DUsHkHUxUMDb2OPjNPgm8iZ2%3DuVGOz8U07vn3K9A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3NHwjAQW8Qo_fpkX%2BVy5hhidjjuU9diYJyidCj2Kq33bw%40mail.gmail.com.


[spyder] Changing layout in the interface

2020-07-02 Thread Derek
I'd like to be able to manually change where in the layout the various
panes appear as well as their sizes.  Can someone please point me to the
docs that describe how this can be done?

Running 4.0.1

Thanks
Derek

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3MEKK4p7pS276Jn3F3Q0%2BmAhyBQ5aO%3DXmF30ArvJC_d2g%40mail.gmail.com.


Re: [spyder] Re: Easy Way to switch Environments in Spyder?

2020-05-02 Thread Derek
Hi

I followed that link and am trying "The Modular Approach", which says:

conda install spyder-kernels=0.*


However, when I do that, conda seems unable to process it; it spends a long
time processing and the reports:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your
environment:

followed by a very, very long list of packages.

This seems not very straightforward?





On Wed, 29 Apr 2020 at 21:43, Carlos Córdoba  wrote:

> Hi,
>
> Please read our guide about how to deal with a single Spyder and multiple
> envs to understand how to work that way:
>
>
> https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder
>
>
> Cheers,
> Carlos
>
> El 29/04/20 a las 12:27 a. m., Derek escribió:
>
> "Install Spyder in an environment created by pip" - yes, I have one copy
> installed that way, but I have dozens of other virtual environments; are
> you saying I need to install dozens of copies of Spyder - that's just not
> not workable.  I am sure I am misunderstanding something here.  I am
> looking for a way to install one copy of Spyder and for it to understand
> what virtual environment my **current** project is running in, and be able
> to read/access all the packages installed in *that* environment (so that,
> for example, PEP8 does not complain about missing packages).
>
> On Mon, 6 Apr 2020 at 03:21, Michael Currin 
> wrote:
>
>> Install Spyder in an environment created by pip and activated using
>> source command rather than command. The reason being when you switch conda
>> envs, spyder becomes unavailable.
>>
>> Then start spyder using that env activated. Or add the env's site
>> packages to your PATH. And make sure you start this and not a conda
>> installed spyder.
>>
>> Now inside Spyder, update Python Path Manager
>> Add paths for your conda envs. Based on my earlier answer above in 2017.
>>
>> Unfortunately this will give issues where two different versions of a
>> package are in different envs and the one at the top of the Python paths
>> list is used.
>>
>>
>>
>> Regards,
>> Michael
>>
>>
>> Sent from mobile
>>
>> On Sun, 05 Apr 2020, 9:06 PM Derek,  wrote:
>>
>>> Is there an easier way to do this without having to install Spyder into
>>> every virtual environment?
>>>
>>> On Sat, 4 Apr 2020 at 18:33, Gastón García González <
>>> g.garciagonzale...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> in conda prompt:
>>>>
>>>>
>>>>- *conda activate env_name*
>>>>-
>>>>- *conda install spyder*
>>>>-
>>>>- *spyder*
>>>>
>>>> then you have running spyder in your environment.
>>>>
>>>>
>>>>
>>>> El lunes, 26 de octubre de 2015, 14:30:21 (UTC+1), Sayth Renshaw
>>>> escribió:
>>>>>
>>>>> Hi all
>>>>>
>>>>> Is there an easy way to switch between python virtual environments in
>>>>> spyder?
>>>>>
>>>>> I am on windows and using anaconda with python 3.4, I do create envs
>>>>> in both python2 and python3 and wondering if there was an obvious way to
>>>>> achieve this?
>>>>>
>>>>> Cheers
>>>>>
>>>>> Sayth
>>>>>
>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/spyderlib/2a84d146-439c-4b75-9ba3-aabbd9c41dd3%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/spyderlib/2a84d146-439c-4b75-9ba3-aabbd9c41dd3%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "spyder" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/spyderlib/NWGlu7r7xxo/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> spyderlib+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/

Re: [spyder] Re: Easy Way to switch Environments in Spyder?

2020-04-29 Thread Derek
"Install Spyder in an environment created by pip" - yes, I have one copy
installed that way, but I have dozens of other virtual environments; are
you saying I need to install dozens of copies of Spyder - that's just not
not workable.  I am sure I am misunderstanding something here.  I am
looking for a way to install one copy of Spyder and for it to understand
what virtual environment my **current** project is running in, and be able
to read/access all the packages installed in *that* environment (so that,
for example, PEP8 does not complain about missing packages).

On Mon, 6 Apr 2020 at 03:21, Michael Currin 
wrote:

> Install Spyder in an environment created by pip and activated using source
> command rather than command. The reason being when you switch conda envs,
> spyder becomes unavailable.
>
> Then start spyder using that env activated. Or add the env's site packages
> to your PATH. And make sure you start this and not a conda installed spyder.
>
> Now inside Spyder, update Python Path Manager
> Add paths for your conda envs. Based on my earlier answer above in 2017.
>
> Unfortunately this will give issues where two different versions of a
> package are in different envs and the one at the top of the Python paths
> list is used.
>
>
>
> Regards,
> Michael
>
>
> Sent from mobile
>
> On Sun, 05 Apr 2020, 9:06 PM Derek,  wrote:
>
>> Is there an easier way to do this without having to install Spyder into
>> every virtual environment?
>>
>> On Sat, 4 Apr 2020 at 18:33, Gastón García González <
>> g.garciagonzale...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> in conda prompt:
>>>
>>>
>>>- *conda activate env_name*
>>>-
>>>- *conda install spyder*
>>>-
>>>- *spyder*
>>>
>>> then you have running spyder in your environment.
>>>
>>>
>>>
>>> El lunes, 26 de octubre de 2015, 14:30:21 (UTC+1), Sayth Renshaw
>>> escribió:
>>>>
>>>> Hi all
>>>>
>>>> Is there an easy way to switch between python virtual environments in
>>>> spyder?
>>>>
>>>> I am on windows and using anaconda with python 3.4, I do create envs in
>>>> both python2 and python3 and wondering if there was an obvious way to
>>>> achieve this?
>>>>
>>>> Cheers
>>>>
>>>> Sayth
>>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/spyderlib/2a84d146-439c-4b75-9ba3-aabbd9c41dd3%40googlegroups.com
>>> <https://groups.google.com/d/msgid/spyderlib/2a84d146-439c-4b75-9ba3-aabbd9c41dd3%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "spyder" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/spyderlib/NWGlu7r7xxo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> spyderlib+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/spyderlib/CAF1Wu3NgDOzQOMKp_YwmosSNOyu_dUj3Xpw%2Bycsd%2BLhAvzXEuQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/spyderlib/CAF1Wu3NgDOzQOMKp_YwmosSNOyu_dUj3Xpw%2Bycsd%2BLhAvzXEuQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/CAD_ULjnEcwx6m1hXRqy1ud1gTbUKKkwwMS8m9%3DjeQ2g9EBBJog%40mail.gmail.com
> <https://groups.google.com/d/msgid/spyderlib/CAD_ULjnEcwx6m1hXRqy1ud1gTbUKKkwwMS8m9%3DjeQ2g9EBBJog%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3PytRuybbUY-5hivUZmWKz%2BaKGpFyNhgjxvX48vx5k8Rw%40mail.gmail.com.


Re: [spyder] Re: Easy Way to switch Environments in Spyder?

2020-04-05 Thread Derek
Is there an easier way to do this without having to install Spyder into
every virtual environment?

On Sat, 4 Apr 2020 at 18:33, Gastón García González <
g.garciagonzale...@gmail.com> wrote:

> Hi,
>
> in conda prompt:
>
>
>- *conda activate env_name*
>-
>- *conda install spyder*
>-
>- *spyder*
>
> then you have running spyder in your environment.
>
>
>
> El lunes, 26 de octubre de 2015, 14:30:21 (UTC+1), Sayth Renshaw escribió:
>>
>> Hi all
>>
>> Is there an easy way to switch between python virtual environments in
>> spyder?
>>
>> I am on windows and using anaconda with python 3.4, I do create envs in
>> both python2 and python3 and wondering if there was an obvious way to
>> achieve this?
>>
>> Cheers
>>
>> Sayth
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/2a84d146-439c-4b75-9ba3-aabbd9c41dd3%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3NgDOzQOMKp_YwmosSNOyu_dUj3Xpw%2Bycsd%2BLhAvzXEuQ%40mail.gmail.com.


Re: [spyder] Run Package written in python-2.7 into Python-3.7

2019-09-24 Thread Derek
One suggestion would be to contact the author and ask for an update. Given
its a university project, there is a good chance it won't have been.

In that case, because its licensed under GNU, you should be able to upload
a copy onto GitHub.  Then fork that copy and create a new Python 3
compatible version.  This is how FOSS works - "stand on the shoulders of
giants".

On Mon, 23 Sep 2019 at 00:17, Savin Beniwal 
wrote:

> Hey All
>
> I have a query regarding Python-2.x and Python-3.x. Currently, I'm working
> with statistical technics in cosmology called the *Gaussian Process*. For
> this, I'm using a python package GaPP [Link]
> . This package was
> written in python-2.x. When I run this in my python-3.7. Gives me the
> following error:
>
> ImportError: cannot import name 'dgp' from 'gapp' (/anaconda3/lib/python3.
> 7/site-packages/gapp/__init__.py)
>
> That means this is not working with python 3.7 directly. *I want to know
> is there any way to run this package in Python-3.7? *Because Python 2.7
> will retire in Dec 2019, but I have to work later also with that. Please
> help me to fix this package into python-3.7
>
>
> I am eagerly waiting for your reply.
> With Regards!!!
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/a6ffde69-bde0-47ad-ad6b-b3b8c98cf35e%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAF1Wu3NUYucuq%3DEATNHmDamN-E8LsHZ1aj_1nU6kpMHgT8%2B7ZA%40mail.gmail.com.


[spyder] Replace emacs as editor for non-Python files?

2019-03-31 Thread Derek Hohls
using Spyder3 ...

How do I ensure that Spyder opens non-Python files - such as shell scripts 
- in an editor of my choice (eg. nano or gedit) rather than emacs?

Thanks
Derek

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to spyderlib@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.


[spyder] Spyder3 / Python 3.6 with conda env - installed libraries raise error

2018-08-28 Thread Derek Hohls
This post:

https://groups.google.com/forum/#!topic/spyderlib/NWGlu7r7xxo

suggests you can launch Spyder with a conda virtual environment activated:

spyder3 activate myenv

However, when I try this it throws an error with one of the Python 
libraries:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 2331, in 
main
mainwindow = run_spyder(app, options, args)
  File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 2215, in 
run_spyder
main.setup()
  File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 730, in 
setup
from spyderlib.plugins.console import Console
  File "/usr/lib/python3/dist-packages/spyderlib/plugins/console.py", line 
31, in 
from spyderlib.widgets.internalshell import InternalShell
  File "/usr/lib/python3/dist-packages/spyderlib/widgets/internalshell.py", 
line 40, in 
from spyderlib.widgets.shell import PythonShellWidget
  File "/usr/lib/python3/dist-packages/spyderlib/widgets/shell.py", line 
35, in 
from spyderlib.widgets.sourcecode.base import ConsoleBaseWidget
  File 
"/usr/lib/python3/dist-packages/spyderlib/widgets/sourcecode/base.py", line 
29, in 
from spyderlib.widgets.mixins import BaseEditMixin
  File "/usr/lib/python3/dist-packages/spyderlib/widgets/mixins.py", line 
18, in 
from xml.sax.saxutils import escape
  File 
"/home/derek/miniconda3/envs/coastops/lib/python3.6/xml/sax/saxutils.py", 
line 6, in 
import os, urllib.parse, urllib.request
  File 
"/home/derek/miniconda3/envs/coastops/lib/python3.6/urllib/request.py", 
line 88, in 
import http.client
  File "/home/derek/miniconda3/envs/coastops/lib/python3.6/http/client.py", 
line 1063
chunk = f'{len(chunk):X}\r\n'.encode('ascii') + chunk \

(My actual project runs just fine, so there is no inherent problem with 
these libraries.)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to spyderlib@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.


Re: [spyder] Execute a python script in batch mode in Spyder

2018-06-05 Thread Derek

Hi, Effie.

I think you should be able to do this from a batch file easily.

Try this:

   cd "C:\dir_where_your_python is"
   python "C:\dir_where_your spyder is\Spyder-script.py"

Hope it helps,
D

On 6/5/2018 4:32 AM, Efoudi Chatzi wrote:

Hello,
I am relatively new with Spyder, but I haven't found a similar post in 
this group so hope you can help me.
I want to start Spyder from a shell command in batch in order to 
execute a python script.

Is this possible?
I have found the -p option that load a project, but it does not open a 
file.


Thanks,
Effie
--
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+unsubscr...@googlegroups.com 
.
To post to this group, send email to spyderlib@googlegroups.com 
.

Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.


--
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+unsubscr...@googlegroups.com.
To post to this group, send email to spyderlib@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.