Category "jupyter-notebook"

Display interactive table

Is it possible in jupyter to display tabular data in some interactive format? So that for example following data A,x,y a,0,0 b,5,2 c,5,3 d,0,3 will be scrollab

the function display_html not working in Jupyter Lab

This "R code" works fine in Jupyter but not in lab: library(IRdisplay) display_html( ' <script> code_show=true; function code_toggle() { if (code_s

How to access shared google drive from remote server's jupyter notebook?

I have a big dataset on my shared google drive. I want to access/read the dataset from a remote server's jupyter notebook to train my deep learning model. I can

vscode: How to see entire cell output in Jupyter Notebook?

Context: I'm running a Jupyter notebook in vscode. I have a dataframe with 100 columns and want to print all columns. Problem: notebooks in vscode has a built-i

Y axis labels are not ordered like the bars in seaborn

I have a data frame called general_stats that has information about YouTube channels like title, number of subscribers and such. I want to plot the channels nam

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