Re: [Qgis-user] Accessing iface from jupyter to create map from QGIS

2023-12-06 Thread Nyall Dawson via QGIS-User
On Thu, 7 Dec 2023 at 13:13, noshin prachi via QGIS-User < qgis-user@lists.osgeo.org> wrote: > Thank you Adam for your response. I have imported iface from from > qgis.utils import iface. I am working in qgis environment. It is my > first work with qgis and I am finding it difficult to

Re: [Qgis-user] Accessing iface from jupyter to create map from QGIS

2023-12-06 Thread noshin prachi via QGIS-User
Thank you Adam for your response. I have imported iface from from qgis.utils import iface. I am working in qgis environment. It is my first work with qgis and I am finding it difficult to understand. Can you please share where I am going wrong? Is there any other way to activate a layer from

Re: [Qgis-user] Accessing iface from jupyter to create map from QGIS

2023-12-06 Thread Adam Nielsen via QGIS-User
> While trying to activate with iface.setactivelayer I am facing an error. The error is complaining that iface is None. Your code doesn't show what value you assigned to this variable - where did you set iface and what value did you set it to? I think you forgot to set it and that is why you

[Qgis-user] Accessing iface from jupyter to create map from QGIS

2023-12-05 Thread noshin prachi via QGIS-User
Dear all, I am trying to create a map from qgis. I have added a few layers and created a layout in qgis. All I want is to create a script to get a map from the layer on the layout that I have created in qgis. I have attached the code. I am thinking of activating each layer at a time so that only