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