<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Edward, in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147246#M1063</link>
    <description>&lt;P&gt;Hi Edward,&lt;/P&gt;

&lt;P&gt;If you create a conda-env with "python=3 intelpython3_core" you get the following packages installed (as is the output of&lt;STRONG&gt; conda list&lt;/STRONG&gt; from the activated environment) :&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;icc_rt                    16.0.3                  intel_6  [intel]  intel
intelpython               2017.0.3                      4    intel
intelpython3_core         2017.0.3                      3    intel
mkl                       2017.0.3                intel_6  [intel]  intel
numpy                     1.12.1             py35_intel_8  [intel]  intel
openmp                    2017.0.3                intel_8    intel
openssl                   1.0.2k                  intel_3  [intel]  intel
pip                       9.0.1              py35_intel_0  [intel]  intel
python                    3.5.3                   intel_1  [intel]  intel
pyyaml                    3.12               py35_intel_1  [intel]  intel
scipy                     0.19.0          np112py35_intel_2  [intel]  intel
setuptools                27.2.0             py35_intel_0  [intel]  intel
sqlite                    3.13.0                 intel_14  [intel]  intel
tbb                       2017.0.6          py35_intel_15  [intel]  intel
tcl                       8.6.4                  intel_16  [intel]  intel
tk                        8.6.4                  intel_26  [intel]  intel
wheel                     0.29.0             py35_intel_5  [intel]  intel
xz                        5.2.2                  intel_15  [intel]  intel
yaml                      0.1.6                  intel_10  [intel]  intel
zlib                      1.2.11                  intel_2  [intel]  intel&lt;/PRE&gt;

&lt;P&gt;As you don't have &lt;STRONG&gt;IPython&lt;/STRONG&gt; installed in your activated environment, you should &lt;STRONG&gt;conda install&lt;/STRONG&gt; that into your environment (&lt;STRONG&gt;conda install ipython&lt;/STRONG&gt;)&lt;BR /&gt;
	From the activated environment, you can install xarray with &lt;STRONG&gt;conda install xarray&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;To verify that this has worked you can run the following from your activated environment:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;&lt;STRONG&gt;python -c "import xarray"&lt;/STRONG&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;STRONG&gt;ipython -c "import xarray"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;If neither print anything to STDOUT, you're good to go. Also, if you want to install&lt;STRONG&gt; Jupyter Notebook&lt;/STRONG&gt; as well, you can do so from your activated environment.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Rohit&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 17:37:05 GMT</pubDate>
    <dc:creator>Rohit_J_Intel</dc:creator>
    <dc:date>2017-07-14T17:37:05Z</dc:date>
    <item>
      <title>importing xarray doesn't work with ipython</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147245#M1062</link>
      <description>&lt;P&gt;I find this very strange. I have installed intel python using&lt;/P&gt;

&lt;P&gt;conda create -c intel -n intelpython3 python=3 intelpython3_core&lt;/P&gt;

&lt;P&gt;I activate the environment, and then install xarray using conda. Import of xarray works fine in python, but not in ipython or jupyter notebook. I included my basic work flow. This seems to be specific to the xarray package, for example the dependency pandas which I also installed at the same time imports just fine in both ipython and python.&lt;/P&gt;

&lt;P&gt;Any thoughts are appreciated! Thanks&lt;/P&gt;

&lt;P&gt;(intelpython3) bash-4.2$ python&lt;BR /&gt;
	Python 3.5.3 |Intel Corporation| (default, Apr 27 2017, 18:08:47)&lt;BR /&gt;
	[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux&lt;BR /&gt;
	Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;
	Intel(R) Distribution for Python is brought to you by Intel Corporation.&lt;BR /&gt;
	Please check out: &lt;A href="https://software.intel.com/en-us/python-distribution" target="_blank"&gt;https://software.intel.com/en-us/python-distribution&lt;/A&gt;&lt;BR /&gt;
	&amp;gt;&amp;gt;&amp;gt; import xarray&lt;/P&gt;

&lt;P&gt;Works fine. This does not:&lt;/P&gt;

&lt;P&gt;(intelpython3) bash-4.2$ ipython&lt;BR /&gt;
	Python 3.5.3 |Intel Corporation| (default, Apr 27 2017, 18:08:47)&lt;BR /&gt;
	Type "copyright", "credits" or "license" for more information.&lt;/P&gt;

&lt;P&gt;IPython 5.3.0 -- An enhanced Interactive Python.&lt;BR /&gt;
	?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; Introduction and overview of IPython's features.&lt;BR /&gt;
	%quickref -&amp;gt; Quick reference.&lt;BR /&gt;
	help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; Python's own help system.&lt;BR /&gt;
	object?&amp;nbsp;&amp;nbsp; -&amp;gt; Details about 'object', use 'object??' for extra details.&lt;/P&gt;

&lt;P&gt;In [1]: import xarray&lt;BR /&gt;
	---------------------------------------------------------------------------&lt;BR /&gt;
	ImportError&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Traceback (most recent call last)&lt;BR /&gt;
	&amp;lt;ipython-input-1-cb9924ede87d&amp;gt; in &amp;lt;module&amp;gt;()&lt;BR /&gt;
	----&amp;gt; 1 import xarray&lt;/P&gt;

&lt;P&gt;ImportError: No module named 'xarray'&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 00:03:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147245#M1062</guid>
      <dc:creator>Edward_R_</dc:creator>
      <dc:date>2017-07-14T00:03:11Z</dc:date>
    </item>
    <item>
      <title>Hi Edward,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147246#M1063</link>
      <description>&lt;P&gt;Hi Edward,&lt;/P&gt;

&lt;P&gt;If you create a conda-env with "python=3 intelpython3_core" you get the following packages installed (as is the output of&lt;STRONG&gt; conda list&lt;/STRONG&gt; from the activated environment) :&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;icc_rt                    16.0.3                  intel_6  [intel]  intel
intelpython               2017.0.3                      4    intel
intelpython3_core         2017.0.3                      3    intel
mkl                       2017.0.3                intel_6  [intel]  intel
numpy                     1.12.1             py35_intel_8  [intel]  intel
openmp                    2017.0.3                intel_8    intel
openssl                   1.0.2k                  intel_3  [intel]  intel
pip                       9.0.1              py35_intel_0  [intel]  intel
python                    3.5.3                   intel_1  [intel]  intel
pyyaml                    3.12               py35_intel_1  [intel]  intel
scipy                     0.19.0          np112py35_intel_2  [intel]  intel
setuptools                27.2.0             py35_intel_0  [intel]  intel
sqlite                    3.13.0                 intel_14  [intel]  intel
tbb                       2017.0.6          py35_intel_15  [intel]  intel
tcl                       8.6.4                  intel_16  [intel]  intel
tk                        8.6.4                  intel_26  [intel]  intel
wheel                     0.29.0             py35_intel_5  [intel]  intel
xz                        5.2.2                  intel_15  [intel]  intel
yaml                      0.1.6                  intel_10  [intel]  intel
zlib                      1.2.11                  intel_2  [intel]  intel&lt;/PRE&gt;

&lt;P&gt;As you don't have &lt;STRONG&gt;IPython&lt;/STRONG&gt; installed in your activated environment, you should &lt;STRONG&gt;conda install&lt;/STRONG&gt; that into your environment (&lt;STRONG&gt;conda install ipython&lt;/STRONG&gt;)&lt;BR /&gt;
	From the activated environment, you can install xarray with &lt;STRONG&gt;conda install xarray&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;To verify that this has worked you can run the following from your activated environment:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;&lt;STRONG&gt;python -c "import xarray"&lt;/STRONG&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;STRONG&gt;ipython -c "import xarray"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;If neither print anything to STDOUT, you're good to go. Also, if you want to install&lt;STRONG&gt; Jupyter Notebook&lt;/STRONG&gt; as well, you can do so from your activated environment.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Rohit&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:37:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147246#M1063</guid>
      <dc:creator>Rohit_J_Intel</dc:creator>
      <dc:date>2017-07-14T17:37:05Z</dc:date>
    </item>
    <item>
      <title>That worked. Thank you for</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147247#M1064</link>
      <description>&lt;P&gt;That worked. Thank you for your help. I guess the issue lay with my cursory knowledge of conda environments, and wasn't necessarily intel python related. I appreciate your taking the time to answer.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 22:40:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/importing-xarray-doesn-t-work-with-ipython/m-p/1147247#M1064</guid>
      <dc:creator>Edward_R_</dc:creator>
      <dc:date>2017-07-14T22:40:51Z</dc:date>
    </item>
  </channel>
</rss>

