[pdal] PDAL and Jupyter (Newbie)
Kenneth Jacob
kdjacob2000 at yahoo.com
Fri May 16 05:00:15 PDT 2025
Hi Bradley,
Thank you for this advice. I'm traveling for the next few days but will try this when I get back to the office and have a chunk of time to focus on this.
I'll let you and the community know how it works out.
Sincerely,
Ken
On Wednesday, May 14, 2025 at 11:16:03 PM EDT, Bradley Chambers <brad.chambers at gmail.com> wrote:
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 jupyterconda activate PDALenvjupyter 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.41Running 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/20250516/9011e0da/attachment.htm>
More information about the pdal
mailing list