<div dir="ltr">Rereading your original post, am I correct in understanding that you have Jupyter installed (perhaps even independent of Conda) and you are trying to run the Conda commands to create and activate the environment within the already running Jupyter notebook? I'm not sure that the Conda environment is ever going to activate, at least not without jumping through some hoops to make it happen.<div><br></div><div>The approach that I regularly use, which should work for you, is to create your PDAL environment from the command line prior to starting Jupyter. Make sure to install both PDAL and Jupyter to the environment, then activate it. At this point you should be able to start Jupyter and import PDAL. Something like this:</div><div><br></div><div>conda create --yes -n PDALenv -c conda-forge python-pdal jupyter</div><div>conda activate PDALenv</div><div>jupyter notebook</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, May 14, 2025 at 8:16 PM Kenneth Jacob <<a href="mailto:kdjacob2000@yahoo.com">kdjacob2000@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><div></div>
<div dir="ltr">Hello Bradley,</div><div dir="ltr"><br></div><div dir="ltr">Thanks very much for your reply.</div><div dir="ltr"><br></div><div dir="ltr">YES. Everything is running on the MacOS environment in my post.</div><div dir="ltr"><br></div><div dir="ltr">Thoughts?</div><div dir="ltr"><br></div><div dir="ltr">Ken</div><div><br></div>
<div id="m_-7880145183550206702ydp3c653b6ayahoo_quoted_7826752204">
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px">
<div>
On Tuesday, May 13, 2025 at 04:37:53 PM EDT, Bradley Chambers <<a href="mailto:brad.chambers@gmail.com" target="_blank">brad.chambers@gmail.com</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="m_-7880145183550206702ydp3c653b6ayiv8044876111"><div><div dir="ltr">Is Jupyter installed in the same environment?</div><br clear="none"><div><div id="m_-7880145183550206702ydp3c653b6ayiv8044876111yqt93166"><div dir="ltr">On Tue, May 13, 2025 at 3:35 PM Kenneth Jacob via pdal <<a shape="rect" href="mailto:pdal@lists.osgeo.org" rel="nofollow" target="_blank">pdal@lists.osgeo.org</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Helvetica,Arial,sans-serif;font-size:16px"><div dir="ltr"><div><blockquote type="cite"><div style="line-height:1.5"><div style="line-height:1.5"><div style="line-height:1.5"><div dir="ltr" style="line-height:1.5"><b>I'm a newbie to PDAL...</b></div><div dir="ltr" style="line-height:1.5"><b><br clear="none"></b></div><div dir="ltr" style="line-height:1.5"><b>My environment:</b></div><div dir="ltr" style="line-height:1.5">MacOS Sequoia 15.41</div><div dir="ltr" style="line-height:1.5">Running Anaconda and Jupyter Notebook</div><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5"><b>Question:</b></div><div dir="ltr" style="line-height:1.5">I've been successful getting PDAL up and running through the Terminal App.</div><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">But now I'd like to run PDAL commands if possible from a Jupyter notebook.<br clear="none"></div><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">Running the following command from Jupyter produces the expected output:</div><blockquote style="margin-left:40px;padding:0px;border-width:medium;border-style:none;border-color:currentcolor"><div dir="ltr" style="line-height:1.5"><div style="line-height:1.5"><div style="line-height:1.5">conda create --yes --name PDALenv --channel conda-forge python-pdal</div></div></div></blockquote><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">However, when I follow this with the command to activate the area I created with this command:</div><blockquote style="margin-left:40px;padding:0px;border-width:medium;border-style:none;border-color:currentcolor"><div dir="ltr" style="line-height:1.5"><div style="line-height:1.5"><div style="line-height:1.5">conda activate PDALenv</div></div></div></blockquote><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">I get following error from Jupyter:</div><blockquote style="margin-left:40px;padding:0px;border-width:medium;border-style:none;border-color:currentcolor"><div dir="ltr" style="line-height:1.5"><div style="line-height:1.5"><div style="line-height:1.5">CondaError: Run 'conda init' before 'conda activate'</div></div></div></blockquote><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">I can run the suggested command of 'conda init' and get expected output.<br clear="none"></div><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">But if I re-try to run 'conda activate PDALenv' I get the same error.</div><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">Any thoughts about how I might work through this?</div><div dir="ltr" style="line-height:1.5"><div style="line-height:1.5"><div style="line-height:1.5"><br clear="none"></div></div><div dir="ltr" style="line-height:1.5">Sincerely,</div><div dir="ltr" style="line-height:1.5"><br clear="none"></div><div dir="ltr" style="line-height:1.5">Ken</div></div></div></div></div></blockquote></div></div></div></div>_______________________________________________<br clear="none">
pdal mailing list<br clear="none">
<a shape="rect" href="mailto:pdal@lists.osgeo.org" rel="nofollow" target="_blank">pdal@lists.osgeo.org</a><br clear="none">
<a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><br clear="none">
</blockquote></div></div>
</div></div></div>
</div>
</div></div></div></blockquote></div>