Jupyter labs from anaconda navigator and run from terminal have different sys.path

When launching Jupyter lab from the terminal using jupyter-lab, I cannot import the module numpy (among others).The output of sys.path is: [”, ‘/usr/lib/python36.zip’, ‘/usr/lib/python3.6’, ‘/usr/lib/python3.6/lib-dynload’, ‘/usr/local/lib/python3.6/dist-packages’, ‘/usr/lib/python3/dist-packages’, ‘/usr/lib/python3/dist-packages/IPython/extensions’, ‘/home/simoes/.ipython’] When launching Jupyter lab from the Anaconda navigator, no such problems arise. The output of sys.path is: [‘/home/simoes’, ‘/home/simoes/anaconda3/lib/python37.zip’, ‘/home/simoes/anaconda3/lib/python3.7’, ‘/home/simoes/anaconda3/lib/python3.7/lib-dynload’, ”, ‘/home/simoes/anaconda3/lib/python3.7/site-packages’, ‘/home/simoes/anaconda3/lib/python3.7/site-packages/IPython/extensions’, ‘/home/simoes/.ipython’] Naturally,…

Details

Squid configuration cache_peer does not take effect?

The configuration is as follows: # Squid normally listens to port 3128 always_direct allow all ssl_bump bump all sslproxy_cert_error allow all http_port 3128 ssl-bump cert=/etc/squid/squid.pem key=/etc/squid/squid.pem generate-host-certificates=on options=NO_SSLv2 #http_port 3128 cache_peer 127.0.0.1 parent 10809 0 no-query never_direct allow all I tested it and found out that the 127.0.0.1:10809 proxy was not taken? However, when I…

Details

+/- viewer initialisation in fipy with try, except over simply initializing it

In the example from the fipy documentation the following code is used to “create a Viewer to see the mesh”: viewer = None if __name__ == ‘__main__’: try: viewer = Viewer(vars=phi, datamin=-1, datamax=1.) viewer.plotMesh() input(“Irregular circular mesh. Press <return> to proceed…”) # doctest: +GMSH except: print(“Unable to create a viewer for an irregular mesh (try…

Details

Set language and timezone in CentOS 7 using Ansible: Can’t install locales package

I found the locale_gen module to make sure that locales are present on the system and tried it like described here: – name: Install EN locale locale_gen: name: “de_DE.UTF-8” state: present – name: Install DE locale locale_gen: name: “en_US.UTF-8″ state: present This throws an error: /etc/locale.gen and /var/lib/locales/supported.d/local are missing. Is the package \”locales\” installed?…

Details

Windows server 2019 – expressvpn – MySQL error: “mysqli_real_connect(): (HY000/2002): The requested address is not valid in its context.”

enter image description here Configuration: – Windows Server 2019 – Apache + MySQL (xampp) – ExpressVPN When the VPN is active connecting to phpMyAdmin in localhost browser return the error “mysqli_real_connect(): (HY000/2002): The requested address is not valid in its context.”. How can I solve it? Thank you!

Details

Navigating native to forms in Xamarin giving null reference excpetion

I have 4 tabs in Xamarin.Android project(natively). 3 tabs are loaded natively,but one tab I am loading is a Forms page(content page). Here is the codes for tabs- public override Android.Support.V4.App.Fragment GetItem(int position) { switch (position) { case 0: return new tab1Fragment(); case 1: return new tab2Fragment(); case 2: return new tab3Fragment(); case 3: var…

Details