[pdal] PDAL and Jupyter (Newbie)

Bradley Chambers brad.chambers at gmail.com
Wed May 14 20:15:50 PDT 2025


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.

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:

conda create --yes -n PDALenv -c conda-forge python-pdal jupyter
conda activate PDALenv
jupyter notebook

On Wed, May 14, 2025 at 8:16 PM Kenneth Jacob <kdjacob2000 at yahoo.com> wrote:

> Hello Bradley,
>
> Thanks very much for your reply.
>
> YES. Everything is running on the MacOS environment in my post.
>
> Thoughts?
>
> Ken
>
> On Tuesday, May 13, 2025 at 04:37:53 PM EDT, Bradley Chambers <
> brad.chambers at gmail.com> wrote:
>
>
> Is Jupyter installed in the same environment?
>
> On Tue, May 13, 2025 at 3:35 PM Kenneth Jacob via pdal <
> pdal at lists.osgeo.org> wrote:
>
> *I'm a newbie to PDAL...*
>
> *My environment:*
> MacOS Sequoia 15.41
> Running Anaconda and Jupyter Notebook
>
> *Question:*
> I've been successful getting PDAL up and running through the Terminal App.
>
> But now I'd like to run PDAL commands if possible from a Jupyter notebook.
>
> Running the following command from Jupyter produces the expected output:
>
> conda create --yes --name PDALenv --channel conda-forge python-pdal
>
>
> However, when I follow this with the command to activate the area I
> created with this command:
>
> conda activate PDALenv
>
>
> I get following error from Jupyter:
>
> CondaError: Run 'conda init' before 'conda activate'
>
>
> I can run the suggested command of 'conda init' and get expected output.
>
> But if I re-try to run 'conda activate PDALenv' I get the same error.
>
> Any thoughts about how I might work through this?
>
> Sincerely,
>
> Ken
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20250514/b92c3f21/attachment.htm>


More information about the pdal mailing list