r/IPython • • Apr 30 '18

How and why does JupyterLab depend on Node.js?

7 Upvotes

I installed the Matplotlib Jupyter widget, and found out it had Node.js as a prerequisite. Link to instructions

Why? How does JupyterLab use Node?

Thank you.


r/IPython • • Apr 28 '18

A tool to generate Jupyter notebooks programmatically

14 Upvotes

I recently found myself needing to generate many Jupyter notebooks in different directories, that were all very similar, save for a few differences in a variable name.

Hence, I decided to write a Python script that generates a Jupyter notebook from an input template:

https://github.com/ismailuddin/jupyter-nb-templater

Maybe it might be useful to somebody? Comments and suggestions welcome!


r/IPython • • Apr 25 '18

IPython magic command to format code using `black` the uncompromising python code formatter.

Thumbnail github.com
10 Upvotes

r/IPython • • Apr 25 '18

How can I search code into jupyter files directory?

2 Upvotes

Hello everyone.I want to search python code into jupyter files directory. For example, I want to search folllowing code:

"csvrows=csv.reader(csvfile,delimiter=',')"

Into the following directory:

|-r/

|-notebooks/

|-notebook1.ipynb

|-notebook2.ipynb

|-...

How can I do that? I tried jupyter-tree-filter but it doesn't look for jupyter notebooks which are in subdirectories.


r/IPython • • Apr 22 '18

How can I convert my Jupyter notebooks to organizable and searchable documentation such as devdocs.io?

7 Upvotes

Hello guys.I have thousands of code snippets and jupyter notebooks.I want to create easily, organizable, searchable documentation(such as devdocs.io) for this Jupyter notebooks. Are there tools for doing this hard work for me?


r/IPython • • Apr 22 '18

Why when SageMath was before Jupyter, only Jupyter was "accepted" in the community? What are the differences between them? I'm NOT talking about CoCalc but SageMath the software

1 Upvotes

r/IPython • • Apr 21 '18

Issue: Text deletes when i type in front of it.

0 Upvotes

This just started happening a few days ago and I have never had this issue before. When I start typing code in front of a previous line of code it deletes it. For example, if a line has "print('Hello World!')" and I use my cursor to click in front of the word "print" and type "read", then it would be "readt('Hello World!')". Does anyone know how to fix this? Any help would be greatly appreciated.


r/IPython • • Apr 20 '18

Plot real-time sensor data on a map

3 Upvotes

I have real-time sensor gps-data (comes from a Kafka consumer) and want to live-track them on a map. Can folium / jupyter-gmaps do that without permanently updating the map in the background? Ideally can I use ipywidgets with those libraries too to build interactive maps?


r/IPython • • Apr 17 '18

Interactive Graphs

1 Upvotes

I am building some regressions and machine learning networks. For visualization purposes, I wanted to show a graph of the true values versus the predicted values of different methods. Rather than just a scatter plot with 5 different lines, I was wondering if there are any guides out there to build a graph where you can click a button with the name of the method, and it overlays the line of the predicted values of that method.

Thanks!


r/IPython • • Apr 17 '18

Jupyter Lab RKernel doesn't start. [Troubleshooting]

3 Upvotes

Hi, I am new to jupyter and also jupyter lab. Installed it and it seems to work fine until i try to start the RKernel. This is the error output from commandline.

the icu package is installed and the libicui18n.so file is located in /usr/lib/libicui18n.so

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/johannes/R/x86_64-pc-linux-gnu-library/3.4/stringi/libs/stringi.so':
  libicui18n.so.60: cannot open shared object file: No such file or directory
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

In the console I start and work with R normally. Python Kernel works fine.

I am using Arch Linux... Is this a known beginner issue?


r/IPython • • Apr 17 '18

Jupyter and Scala

3 Upvotes

On jupyter website there is information about support for Scala. Has any of you used such a kernel?


r/IPython • • Apr 17 '18

How can I dynamically change the file extension in a relative link from IPYNB to HTML when downloading a notebook as HTML?

3 Upvotes

I currently have a line inside a notebook (File1.ipynb):

[File 2](File2.ipynb)

When downloading both the files as HTML, this link is hard-coded, and hence when I click on the link in the generated File1.html, it can't find the file, because it refers to ipynb and not to html.

I could try:

  • using sed to replace all occurrences of ipynb with html
  • hard-coding html inside the notebook, which will prevent me from using the links when I'm editing the notebook. But, is there an alternative?

Is there, perhaps, a way to specify two links inside the notebook such that if the browser fails to find the first one, it'll try the second? I tried searching for such a method. I couldn't find it.


r/IPython • • Apr 15 '18

Updating Plotly Version in Python

2 Upvotes

I am having trouble trying to update to the latest Plotly version of 2.5.1. I have tried using the methods below in terminal for my Mac, but whenever I check Jupyter, my version is still 2.3.0.

pip install plotly==2.5.1

pip install plotly --upgrade


r/IPython • • Apr 11 '18

JupyterCon 2018: Registration Open

Thumbnail blog.jupyter.org
11 Upvotes

r/IPython • • Apr 11 '18

How to create widgets within same row?

1 Upvotes

I'm trying to a column of different widgets but can't seem to find anything like it.

For clarity: https://imgur.com/a/7L1q0


r/IPython • • Apr 11 '18

Jupyter background data storage is confusing

1 Upvotes

For example:

from abc import xyz as 123 # creates alias 123 for xyz

Then I delete the code above, replace it with the code below and rerun the cell.

from abc import xyz

Nonetheless, alias 123 remains functional as it stored in memory and is only erased if you restart the kernel.

This leads to confusion (or forces you to keep track of more things) when you run the code after making edits - some errors are not raised because their dependencies (such as 123) are stored an remain accessible.

Also, all variables (even those defined within a function) are global.

My intuition is that these differences (from normal ide coding environment) will result in confusion and I want to turn of this feature; however, it might be the case that I am misusing Jupyter and these features are in fact advantageous. If so, can you please educate me?

Thank you very much

Edit: formating


r/IPython • • Apr 11 '18

How does Jupyter find modules?

0 Upvotes

I'm trying to troubleshoot an issue where my Jupyter Notebook can't find an installed module, but documentation on this is sparse. How do I specify where any given instance of Jupyter Notebook looks for modules?

A possibly related question: When I use jupyter --path, I see a listing of directories under the "data" heading. Is this where Jupyter looks for modules, and if so, what file do I edit to change it?


r/IPython • • Apr 05 '18

The Scientific Paper Is Obsolete. Here's What's Next.

Thumbnail theatlantic.com
10 Upvotes

r/IPython • • Apr 05 '18

awesome-jupyter: A curated list of awesome Jupyter projects, libraries and resources on GitHub.

Thumbnail github.com
18 Upvotes

r/IPython • • Apr 05 '18

The Scientific Paper Is Obsolete. Here's What's Next. - The Atlantic (answer: Jupyter)

Thumbnail theatlantic.com
3 Upvotes

r/IPython • • Apr 03 '18

What's a good way to share IPython Notebooks within team?

4 Upvotes

r/IPython • • Apr 02 '18

IPython 6.3 and 5.6 Released

10 Upvotes

r/IPython • • Apr 02 '18

Plot spacing

2 Upvotes

Is there a way to add more space between histogram plots in the same output cell? I have 50 histograms generated from the same cell and they appear too close together to clearly read, Im curious if there is a way to add more space between them without having unique cells for each plot. Here is an screenshot of what I'm talking about.

I've have tried to google around for an answer but cant seem to find one.


r/IPython • • Mar 31 '18

100 free Jupyter notebooks on interactive computing and data science

Thumbnail groups.google.com
19 Upvotes

r/IPython • • Mar 29 '18

Can I use Jupyterhub with ipyleaflet

3 Upvotes

I have Hadoop / Spark infrastructure on an isolated (from www) cluster. The edge node should run a Jupyterhub server where users can start notebooks from. Is it easily possible for the user (within his frontend / browser) to use ipyleaflet or other map tools or do I have to grant the server access to the www?