Category "jupyter-notebook"

OpenAI Gym - Env.Render() function returning "Display surface quit"

A screenshot of my code with error I am following the tutorial seen at https://www.youtube.com/watch?v=7SVv07QXO5M&ab_channel=HackersRealm The exact code I

migrating keras + tensorflow cpu to tensorflow-gpu keras modelling

I'm a beginner of data-science and by now, I'm trying to migrate old code keras cpu modelling to gpu-tensorflow. fyi: I'm following instruction on prof.jeffheat

Error while creating a model for binary classification for text classification

code: model = create_model() model.compile(optimize=tf.keras.optimizers.Adam(learning_rate=2e-5), loss=tf.keras.losses.BinaryCrossentropy(),

Widgets run perfectly in Jupyter Notebook, but do nothing in Voila

I have several buttons which generate images. All work perfectly in Jupyter Notebook, but when I click Voila, and click the buttons, nothing happens. The first

How to use code auto completion on the notebook of kaggle kernels?

I just run this code in one cell, but it don't work. %config Completer.use_jedi = False

DataSpell: Jupyter server failed to start

I am getting following error while trying to run a jupyter-notebook cell from DataSpell. Can anyone suggest about how to get rid of this? Thanks in advance.

How can I access a port fowarded jupyter by ip address

I have a server running Jupyter and I use ssh port forward to access it by: ssh -L 8888:127.0.0.1:8889 -N -T Server so I can access it from localhost:8888 or 1

How to overcome "No module named 'keras'" while importing tensoflow_hub

I am using Anaconda and Jupyter Notebook. I need a tensorflow_hub to import the ResNet model, however, I get the error No module named Keras. I've installed ker

Python modules erroring out due to trust

All, I'm getting this error "Make this Notebook Trusted to load map: File -> Trust Notebook" when I run the below code in Azure Data Studio v1.33.0. import

Error in Jupyter notebook even after importing the required library

I'm getting an NameError in jupyter notebook even after importing numpy as np. Any idea how to go about it will be appreciated %matplotlib inline %config Inline

Foursquare API Venues/Explore Radius and Limit Parameter issue

I'm having issues with venues/explore? results. I'm exploring some neighborhoods in Seattle. In some requests the API is returning as much as 30 venues when par

Python: Formatting a Pandas dataframe head with LaTex

I have made a Pandas dataframe from several NumPy arrays and tried to format columns heads using LaTex, but it looks awful. I'm working with Jupyter Notebook. i

Cannot import name 'available_if' from 'sklearn.utils.metaestimators'

While importing "from imblearn.over_sampling import SMOTE", getting import error. Please check and help. I tried upgrading sklearn, but the upgrade was undone w

module 'numpy' has no attribute 'ndarray'

My Jupiter notebook was crushed, so I have to reinstall the notebook, but in the new Jupiter notebook, I cannot run pandas. import pandas as pd AttributeError

How to add SageMath 9.4 kernel in Jupyter notebook

I have installed SageMath 9.4, but I could not lunch it in my terminal. When I type sage it said zsh: command not found: sage then I tried alias sage='/Applic

when exporting Jupyter notebook to html file - can not see interactive plots with widgets

I have a script that creates an interactive PCA plot with a widget so the PCA. Meaning a script that I can change the x-axis and the y-axis with a dropdown menu

How to get colored legend with seaborn barplot

There is a problem with plt.legend in seaborn and matplotlib. What is wrong with it? I can't see the legend color. plt.figure(figsize=(30,10)) plt.xticks(rotati

Import geoviews in Anaconda

I am trying to install the geoviews module. I installed it successfully but when I am trying to import it in my code I have this message: No module named 'chann

Plotly Table does not show in Jupyter Lab in Python?

I try to plot table in Plotly in Python in Jupyter Lab. But my table in plotly does not show in Jupyter Lab, my code is as below: df = pd.read_csv('df.csv') fi

Seaborn kdeplot works in local - gives error in amazon sagemaker

I am running the following straightforward code: sns.kdeplot(data=subset_data['VaribleA'],fill=True, color = "#FF0000" , linewidth=1, bw_method = 0.25) When I