Skip to content

Commit

Permalink
Merge pull request #199 from spyder-ide/environments-faq
Browse files Browse the repository at this point in the history
Updated instructions for changing environments in FAQ
  • Loading branch information
CAM-Gerlach authored Nov 9, 2020
2 parents 7fbdabc + 4d4a058 commit 5a85355
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"sphinx_multiversion",
]

panels_add_boostrap_css = False
panels_add_bootstrap_css = False

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
17 changes: 10 additions & 7 deletions doc/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,22 @@ Using Spyder
:align: left
:start: 306


.. dropdown:: Q: How do I get Spyder to work with my existing Python packages/environment?

To work with an existing environment in Spyder, change Spyder’s default Python interpreter.
To do so, first go to your terminal (or Anaconda Prompt on Windows), type ``conda info --envs``, and copy the path from the environment you created to your clipboard.
To work with an existing environment in Spyder, you need to change Spyder’s default Python interpreter.
To do so, click the name of the current environment in the status bar, and then click :guilabel:`Change default environment in Preferences`.

.. image:: images/faq/faq-conda-info.png
:alt: Navigator showing installing specific version of Spyder
.. image:: images/faq/faq-change-environment.png
:alt: Change default environment in Preferences option in status bar

Now, go to :guilabel:`Preferences` in Spyder’s main window, click :guilabel:`Python interpreter` and check :guilabel:`Use the following Python interpreter`.
Paste the path you copied before, add ``/bin/python`` at the end on Mac and Linux or ``/python.exe`` on Windows, and click :guilabel:`OK`.
This will open the :guilabel:`Preferences` dialog in the :guilabel:`Python interpreter` section.
Here, select the option :guilabel:`Use the following Python interpreter`, and use the dropdown below to select your preferred environment.
If its not listed, use the text box or the :guilabel:`Select file` button to enter the path to the Python interepreter you want to use.
See the :doc:`ipythonconsole` for more information.

.. image:: images/faq/faq-python-interpreter.png
:alt: Navigator showing installing specific version of Spyder
:alt: Preferences showing changing Python interpreter

Click :guilabel:`Restart kernel` in the :guilabel:`Consoles` menu for this change to take effect.

Expand Down
2 changes: 1 addition & 1 deletion doc/first-steps-with-spyder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Discover the basics of using the Spyder interface and get an introduction to its

Hello everyone! I'm Juanita, and in this video I'm going to show you how to open Spyder and go over the basics of Spyder's interface. We will learn about Spyder's four panes that you'll likely be using most often, as well as briefly explore the others that are open by default. If you don't have Spyder installed and would like to follow along, you can `download it here`_.

.. _download it here: https://www.spyder-ide.org/#fh5co-download
.. _download it here: https://www.spyder-ide.org/#section-download

The easiest way to open Spyder is by opening Anaconda Navigator and clicking on the Spyder application. In case you have an older version of Spyder in Anaconda, open the command line (or the Anaconda Prompt in the case of Windows) and type the commands:

Expand Down
Binary file added doc/images/faq/faq-change-environment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/images/faq/faq-conda-info.png
Binary file not shown.
Binary file modified doc/images/faq/faq-python-interpreter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a85355

Please sign in to comment.