Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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 ...
William Stein's user avatar
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 ...
Rob's user avatar
  • 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 Noteable Etc. However the base idea of collaborating ...
Fnguyen's user avatar
  • 1,743
16 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 ...
Krishna's user avatar
  • 295
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 ...
Kiritee Gak's user avatar
  • 1,799
14 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 ...
Archana David's user avatar
11 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 ...
Donald S's user avatar
  • 1,959
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 ...
scottlittle's user avatar
9 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.
Emre's user avatar
  • 10.5k
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 ...
Srihari's user avatar
  • 777
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 ...
SmallChess's user avatar
  • 3,560
7 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 ...
Sarunas's user avatar
  • 71
7 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:...
Donald S's user avatar
  • 1,959
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.
datarules's user avatar
6 votes

Conda Verification Failed

First try this: conda remove {failing_packages} conda install {failing_packages} Where {failing_packages} is/are the package(...
Roel Van de Paar's user avatar
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: ...
Willem van Doesburg's user avatar
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
Icyblade's user avatar
  • 4,336
4 votes

How to export one cell of a jupyter notebook?

You can register a new cell magic, for example: ...
David Chen's user avatar
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....
Tagar's user avatar
  • 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 ...
Bruno Lubascher's user avatar
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-...
tomash's user avatar
  • 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 ...
Oxbowerce's user avatar
  • 7,592
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 ...
Pushkaraj Joshi's user avatar
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 ...
spectre's user avatar
  • 2,105
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 ...
Paul Smith's user avatar
4 votes
Accepted

How do I prompt GPT-4 to look at a PDF in Jupyter Notebook?

OpenAI's API does not support providing PDFs. Therefore, what you intend to do is not possible. You have other options though: Parse the PDF locally and send text to GPT4. The parse may consist of ...
noe's user avatar
  • 26.9k
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 ...
Lilykos's user avatar
  • 31
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 ...
Dawny33's user avatar
  • 8,296
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.
Brian Spiering's user avatar

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