Hot answers tagged

24 votes

Collaborating on Jupyter Notebooks

CoCalc provides Jupyter notebooks with realtime collaboration, unlike Colab, Kaggle, etc. You just make a project drag and drop ipynb and data files, add collaborators, and everybody can edit ...
18 votes

GraphViz not working when imported inside PydotPlus (`GraphViz's executables not found`)

See: Graphviz's executables are not found (Python 3.4) and graphviz package doesn't add executable to PATH on windows #1666 and Problem with graphviz #1357 - it's a reoccurring problem (for that ...
  • 513
17 votes
Accepted

Collaborating on Jupyter Notebooks

There are several collaboration platforms with hosted notebooks that can be shared like: Google Colab Kaggle Kernels Deepnote Binder Curvenote Etc. However the base idea of collaborating and sharing ...
  • 1,673
15 votes
Accepted

Difference between interpolate() and fillna() in pandas

fillna fills the NaN values with a given number with which you want to substitute. It gives you an option to fill according to ...
  • 1,769
14 votes

How to download a Jupyter Notebook from GitHub?

You can do: Open the jupyter notebook you want to run. Click on: Raw Save Ctrl+S Remove: .txt Now navigate to the ...
  • 275
10 votes

How do I make an interactive PCA scatterplot in Python?

There is an awesome library called MPLD3 that generates interactive D3 plots. This code produces an HTML interactive plot of the popular iris dataset that is compatible with Jupyter Notebook. When ...
10 votes

Generate pdf from jupyter notebook without code

Try this: jupyter nbconvert --to pdf --TemplateExporter.exclude_input=True my_notebook.ipynb This also works for html output. You will find the documentation for ...
  • 1,819
9 votes

How to setup and run Conda on Google Colab

Updated Instructions to install Conda on Google Colab Oct 2021 The process is much simpler with condacolab python library Steps Import ...
8 votes

Share Jupyter Notebook with a non programmer

There is an option to convert the notebook to HTML. If the non programmer just have to view the notebook, do that then upload it in google drive or any website or you can share it even through mail. I ...
  • 737
7 votes
Accepted

Is it possible to (de)activate a specific set of cells in jupyter?

Welcome to DataScience.SE! This is not currently possible. You could change the cells to Raw.
  • 10.4k
7 votes

Share Jupyter Notebook with a non programmer

GitHub has built in support for showing a notebook. You will just need to run the notebook yourself, then upload the file to Github like all other file types. Your viewer will be able to see your ...
  • 3,420
6 votes
Accepted

How to download a Jupyter Notebook from GitHub?

If the tutorial is a GitHub repo, sure. Clone the repository. Run jupyter-notebook and open the notebook there.
6 votes

GraphViz not working when imported inside PydotPlus (`GraphViz's executables not found`)

In my case I am able to find graphviz executables manually in anaconda3\Library\bin\graphviz, but I still would get the ...
  • 61
6 votes
Accepted

How to setup and run Conda on Google Colab

Found a way to get Miniconda working in Google colab. For now, use source activate, not conda activate in the 2nd cell. Still working out the bugs with using conda to activate. Full Notebook demo here:...
  • 1,819
5 votes
Accepted

Open-source interactive dashboard in Python

Have a look at IPyWidgets. I've used it to create interactive dashboards in IPython/Jupyter. It's very concise and powerful. You define a function: ...
5 votes

How to change plot size in nltk.plot()

Try something like this: import matplotlib.pyplot as plt plt.figure(figsize=(30, 20)) # the size you want # your code goes here
  • 4,096
4 votes
Accepted

Avoid reloading DataFrame between different python kernels

If it's important for your use cases, you could try switching to Apache Zeppelin. As all Spark notebooks there share the same Spark context, same Python running environment. https://zeppelin.apache....
  • 198
4 votes

How to download a Jupyter Notebook from GitHub?

This is a tool that I came across to run Jupyter notebooks: Binder. You just need to input the repo you are looking at, the branch, and the path. Then you can interactively run the notebook. The ...
4 votes

Conda Verification Failed

First try this: conda remove {failing_packages} conda install {failing_packages} Where {failing_packages} is/are the package(...
4 votes

What is the lightest browser to launch a jupyter notebook?

Try 32-bit Chrome or Firefox, it may significantly lower memory usage. Remember, it is surprisingly difficult to estimate physical memory consumption of given app: https://dzone.com/articles/windows-...
  • 141
4 votes
Accepted

Practical way to convert jupyter notebook to MS Word document?

The easiest way is probably using a method similarly to what is described in this answer, that is, convert the notebook to markdown and then use any of the tools available (such as Pandoc) to convert ...
  • 6,134
4 votes
Accepted

PCA - what do I do with its results?

What can I do with this information? You can do a lot of things with this data. You can visualize it, you can use the vectors for prediction or regression, whatever the task at hand. However, there ...
4 votes

Best platform to work with when having millions of rows in dataframe

There are 2 things you can do here: 1.) Use libraries like Dask to speed up your data preprocessing. Here is the link 2.) Use cloud computing services like Azure, AWS or GCP. I am not aware of other ...
  • 1,293
4 votes
Accepted

Best platform to work with when having millions of rows in dataframe

A million observations of 20 features should be very manageable on a laptop, if a little slow. Cloud computing for very large datasets is staggeringly expensive and offers little or no benefit unless ...
3 votes

How to export one cell of a jupyter notebook?

You can register a new cell magic, for example: ...
3 votes

Interactive plots in Jupyter

Plotly is by far the best interactive visualization library/platform I have used, and it works very well with IPython/Jupyter too. There are tutorials on Plotly's docs which help you integrate it ...
  • 8,076
3 votes

How do I make an interactive PCA scatterplot in Python?

I would prefer this to be a comment instead of an answer, as my intention is not to plug/advertise, but I am currently working on my thesis which may be of interest to you as it kind of does what you ...
  • 31
3 votes
Accepted

Use spark_csv inside Jupyter and using Python

Assuming the rest of your configuration is correct all you have to do is to make spark-csv jar available to your program. There are a few ways you can achieve this: ...
  • 146
3 votes

Jupyter notebooks and git

One option is to strip the output from the .ipynb file. Then the git diff would only track the cell data. One package that strips the output Jupyter Notebook is nbstripout.

Only top scored, non community-wiki answers of a minimum length are eligible