Category : jupyter-lab

I have been using Anaconda Navigator to launch JupyterLab for months (https://www.anaconda.com/products/individual). Then, I decided I want to view all of the dataframe in JupyterLab, and made the fatal mistake of following the advice here: https://pbpython.com/dataframe-gui-overview.html. I installed a few of the suggestions in this link, and then Anaconda Navigator refused to launch JupterLab. So, ..

Read more

I am creating a conda env with the following commands in my Windows machine: conda create -n s1 python=3.6 conda activate s1 conda config –env –add channels conda-forge conda config –env –set channel_priority strict Then, I install the geopandas, rasterio, jupyterlab packages: conda install geopandas conda install jupyterlab conda install raserio If I open python ..

Read more

I am creating a jupyter notebook programatically with Python. Using the nbformat library. Once I create the file: fname = f'{filename}.ipynb’ with open(fname, ‘w’) as notebook: nbf.write(nb, notebook) I open the file with Jupyter Lab and get the following error in the terminal console: Fatal Python error: init_import_size: Failed to import the site module Python ..

Read more

I am writing a jupyter notebook (on JupyterLab) where I show some figures. At some point, I changed the matplotlib theme with the command plt.style.use(‘dark_background’). But when I did, the figures grew bigger, and kept appearing big when I switched backed to default style with plt.style.use(‘default’). The difference in sizes can be seen here Any ..

Read more

I’m new in python world and I’m on Windows 10. I want to download jupyterlab (because i want to learn data anlysis). I follow a tutorial that tell me to enter "py 3.9 -m jupyterlab". Then he lauch this command, a web page is open with jupyterlab website. For me, that print at the end ..

Read more

I need to visualize lammps data contained in dump.crack file by nglview module in Jupiter Lab, but I got this line instead of visualization: HBox(children=(NGLWidget(), VBox(children=(Dropdown(description=’Show’, options=(‘All’, ‘H’, ‘O’), value=’All’… There are not solutions in Google for this exception and it is not even exception it isn’t red or underlined, but I urgently need working ..

Read more

Does anyone have an explanation for the following: >>> mystring=’blablabla’ >>> type(mystring) <class ‘str’> >>> class bobo(): … pass … >>> type(bobo) <class ‘type’> >>> b = bobo() >>> type(b) <class ‘__main__.bobo’> >>> print(type(bobo)) <class ‘type’> >>> print(type(b)) <class ‘__main__.bobo’> I would expect the same result when running type(mystring) as type(b) or type(bobo) i.e. getting ..

Read more