Category "jupyter-notebook"

Color pandas DataFrame value if larger than 1.5*median(column)

Let's say I have a DataFrame that looks like this: df= pd.DataFrame({'A': [1,-2,0,-1,17], 'B': [11,-23,1,-3,132], 'C': [121,

Missing Jupyter Notebook Kernels in VSCode

I have multiple people working on the same AWS EMR cluster to run some Spark jobs. This is being done through Jupyter Notebooks which are created/modified usin

How to automate running of Jupyter Notebook cells periodically

I want to integrate my jupyter notebook with my website, where I have written the code to fetch real-time data from MySQL server and do real-time visualisation

Conda environments not showing up in Jupyter Notebook

I installed Anaconda (with Python 2.7), and installed Tensorflow in an environment called tensorflow. I can import Tensorflow successfully in that environment.

How publish R code in html using notebook jupyter

I see many people talk about converting and sharing codes to HTML using jupyter notebooks like it is a piece of cake but it has turned into a nightmare for me!

kernel keeps dying in jupyter notebook

Whenever I start jupyter notebook and create a new python 3 notebook I get an error message saying kernel has died. I have tried deleting and installing ipython

H2O python - How to let h2oframe to dataframe with correctly character and datetime

I have a csv file, and want to use H2O to do DeepLearning. But it has some Chinese and datetime that when I finish my Deeplearning need to save output to csv, i

Jupyter Notebook unable to recognize pandas library: Python

I use Windows operating system both personally in my home and at office. The Jupyter Notebook in my personal laptop is able to recognize pandas library. I can

importing functions from another jupyter notebook

I am trying to import a function from another jupyter notebook In n1.ipynb: def test_func(x): return x + 1 -> run this In n2.ipynb: %%capture %%run n1

Python argparse error: error: argument count: invalid int value

I am trying to run below code in jupyter notebook. import argparse parser = argparse.ArgumentParser(description='Example with non-optional arguments') parser.a

Jupyter Notebook "Notebook changed" keeps appearing

i keep getting the following message : "The notebook file has changed on disk since the last time we opened or saved it. Do you want to overwrite the file on di

jupyter-console fails to start, but jupyter-notebook is fine

I can start jupyter-notebook but not jupyter-console. In the dev virtualenv on a Mac, it tries to import cast_unicode_py2 from IPython.utils.py3compat, but cas

AttributeError: module 'keras.utils' has no attribute 'get_file'

When I'm trying to implement the following code from keras_segmentation.models.segnet import resnet50_segnet from keras_segmentation.predict import model_from_c

How to have convert notebook command support Chinese character on Mac? I am willing to contribute some code to jupyter notebook

I am running jupyter notebook on Mac. This command converts a notebook file that does not contain Chinese character to pdf successfully. jupyter nbconvert tes

How to run an .ipynb Jupyter Notebook from terminal?

I have some code in a .ipynb file and got it to the point where I don't really need the "interactive" feature of IPython Notebook. I would like to just run it s

How to change the Jupyter start-up folder

I tried following the instructions given on the Jupyter Notebook documentation. Unfortunately, I haven't been able to figure it out. Where exactly is this "sta

pyspark delta-lake metastore

Using "spark.sql.warehouse.dir" in the same jupyter session (no databricks) works. But after a kernel restart in jupyter the catalog db and tables arent't re

Py4JJavaError: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext

Anyon know Why I keeo getting this error in Jupyter Notebooks??? I've been trying to load my Tensorflow model into Apache Spark vis SparlFlowbut I can't seem to

coding reduceByKey(lambda) in map does'nt work pySpark

I can't understand why my code isn't working. The last line is the problem: import findspark findspark.init() from pyspark import SparkConf, SparkContext from p

How to patch input() when testing Jupyter notebook cells with testbook?

A project I'm involved in uses testbook to test code cells of Jupyter notebooks. Patching works fine — unless the code to be tested asks for