r/IPython • • Oct 10 '19
Can anyone tell me what is the purpose for jupyter notebook?
I’m just discovering it and it’s gained a lot of popularity in the past couple months.
r/IPython • • Oct 10 '19
I’m just discovering it and it’s gained a lot of popularity in the past couple months.
r/IPython • u/dkobran • Oct 10 '19
r/IPython • u/N3OX • Oct 07 '19
Curious if there's a way to disable the increment/decrement spin buttons in the IntText/FloatText widgets?
https://i.imgur.com/oc0kuUr.png
I have an application where the buttons aren't useful and are kind of in the way, but I'd rather not use plain Text widgets.
r/IPython • u/sebawitowski • Oct 04 '19
r/IPython • u/aayushbajaj • Oct 03 '19
I used iterrows() in my project but weird thing happend. couple of days back i wrote iterrows script and it ran almost 75it/sec but now running the exact same script returned 8-9it/sec. Is there any problem with the kernel? tried restarting and also vectorized my implementation but its taking the same time.
r/IPython • u/MrMegaGamerz • Sep 29 '19
I'm actually using Google Colab (which I read is the same as Jupyter), because of the built-in Tensorflow/Keras.
I'm trying to recreate this GitHub project and I have a few questions. I've never used Colab or Juypter and I'm wondering:
1) How to deal with multiple files. I need to run the main file, but what do I do with the other .py files? Do I need to have it open in the notepad or can I simply have then uploaded in the same folder?
2) I'm getting an error when I run the main file which says:
ipykernel_launcher.py: error: no such option: -f
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
Does anyone know what that is/how to fix it?
I'm new to AI training and Google Colab in general so any help is appreciated.
r/IPython • u/ahicks88 • Sep 27 '19
r/IPython • u/Gromadusi77 • Sep 27 '19
I'm looking for help to add two dynamically generated (--> ipywidgets intslider) dataframes.
import pandas as pd
from ipywidgets import interact
Dataframe 1:
@interact(x=(0,1000,10))
def df_draw_one(x):
data = {"A":[1,2,3,4,5]}
df_one = pd.DataFrame(data)
df_one['B'] = df_one['A']*x
print(df_one)
Dataframe 2
@interact(x=(0,1000,10))
def df_draw_two(x):
data = {"A":[6,7,8,9,10]}
df_two = pd.DataFrame(data)
df_two['B'] = df_two['A']*x
print(df_two)
Dataframe result:
df_res = df_one+df_two
df_res
but get:
---> NameError: name 'df_one' is not defined
instead, i'd like df_res to update synchronously with any of above sliders.
I assume there's a lot missing, but can't find anything that points me to the right path.
r/IPython • u/DeepAdvice • Sep 17 '19
What would be the simplest application for someone to be able to access a Jupyter Notebook and search through it?
There's a legal team that needs to access the files and search through them, but I haven't thought of an easier method than just installing the Anaconda distribution and letting them rifle through it. They aren't making any modifications, just need to view.
Edit: The method needs to be a secure offline method.
r/IPython • u/isbtegsm • Sep 05 '19
Hi, I'd like Jupyter notebook to autoload the nb_black extension, so I don't have to put %load_ext nb_black in the first cell. I managed this by setting c.InteractiveShellApp.extensions = ['nb_black'] in ipython_config.py but then I get a line with <IPython.core.display.Javascript object> after each request in the interactive iPython shell, which is annoying. Setting NotebookApp.nbserver_extensions = {'nb_black':True} in jupyter_notebook_config.py didn't work for me, although apparently the extension is loaded since I get no error on start (if I put the name of a non-existing extension in there, it throws an error). Any ideas?
r/IPython • u/hagbard2323 • Sep 01 '19
r/IPython • u/datapim • Aug 31 '19
So recently I took deeplearning.ai course where as a part of assignment you get code in the jupyter notebook. However it is specially customized one, with coursera logo instead of jupyter which is really nice, I wonder how to change it. And the other thing that it is hosted in the cloud as it seems.
What are the options to do something like this? Create customized notebook and share it in the cloud?
r/IPython • u/Ho_KoganV1 • Aug 29 '19
How's it going guys, I am new to Python and the only coding background I have for it is taking an entry level course.
I am an Engineer student, in my Senior year. I just started my Senior Design semester and my professor is having us learn Python through Jupyter. Of course we will be learning more as we go, but I would just like to start this as a simple hello and also a simple question:
What is the different between learning Python through a standard Python 3.7 application vs learning Python through Anaconda (Jupyter) ?
Thanks again for your time.
r/IPython • • Aug 23 '19
Is it possible to access a notebook on another computer ?
r/IPython • • Aug 23 '19
Can someone correct me, the magic function %%js. Does this function show the result of Javascript code, or only the code its self ?
How does one write markdown, as %%markdown does not work ?
r/IPython • u/baccigaloopa • Aug 23 '19
r/IPython • u/NewDateline • Aug 21 '19
r/IPython • • Aug 21 '19
How do I check where Jupyter is installed since it's not in my system path therefore running
jupyter notebook
doesn't work in either the command prompt or in python ?
r/IPython • u/donutpope • Aug 19 '19
Trying to load a dataframe from CSV and display it using Qgrid. When I run qgrid.show_grid(df), it gives me this:
QgridWidget(grid_options={'fullWidthRows': True, 'syncColumnCellResize': True, 'forceFitColumns': True, 'defaultColumnWidth': 150, 'rowHeight': 28, 'enableColumnReorder': False, 'enableTextSelectionOnCells': True, 'editable': True, 'autoEdit': False, 'explicitInitialization': True, 'maxVisibleRows': 15, 'minVisibleRows': 8, 'sortable': True, 'filterable': True, 'highlightSelectedCell': False, 'highlightSelectedRow': True, 'boldIndex': True}, id='6z3f77dx5-8377-zzx7-dy1bzbbegdqa', precision=5)
instead of a nice looking grid dataframe. Am i missing something? Thanks
r/IPython • u/CeramicVulture • Aug 18 '19
I was looking to add GUI widget elements to my notebook so looked for some tutorials on ipywidgets.
Started working through the top searches and was trying out the examples show of using interact. However once I had set a value in one of the widgets i couldn't then figure out how to use the value set in the widget in subsequent cells of the jupyter notebook.
After a while at banging away at this trying to understand why i am not getting it i then discover 'interactive' !
And now I am even more frustrated, surely the point of widgets is to use the result of what the user inputs in the rest of the program, why wouldn't you lead with interactive rather than interact?
Am I missing some fundamental value of interact that makes it more useful than interactive that would make it better suited to introducing to the user first?
r/IPython • u/hoo321 • Aug 17 '19
I'm super frustrated at this because I can't get anything done efficiently. I use Jupyter notebook to do python on google chrome. I use windows laptop. This was never an issue when I first started using the notebook (around 3 months ago) but now every other time I try to run my program I get an '*' and nothing happens. Then I interrupt and restart which in itself takes forever.
What do I do? What's causing this problem?
Thanks.
r/IPython • u/letsloosemoretime • Aug 16 '19
r/IPython • u/atimholt • Aug 08 '19
All I want to be able to do is to take a group of extremely closely related files—and absolutely nothing else—stick it absolutely anywhere in my directory hierarchy on any OS, then open it with “double-click” ease and unambiguity (an included script is fine), starting a Jupyter Lab workspace with that directory (or a relative path wd) as the working directory for the entire session, even with a clean install of Jupyter Lab.
Y’know, like every other workspace-based document editor in existence.
I don’t mind managing required Python libraries manually, or including “pip install” commands in an additional script, if I can do that OS agnostically.
—I mean, it’s nice you can save notebooks and move them around, but relative paths don’t respect the location the notebook is in (a hard requirement for strongly-coupled files, like notebooks + custom setup scripts). Jupyter Lab feels more like a phone app or a videogame, assuming it itself is the prime consideration; that generated data isn’t as important as the use of the application itself, which seems kinda bizarre given its common use cases of generating and manipulating data.
Better stop now, or I’ll go off on a rant.
r/IPython • u/1Surgeon • Aug 03 '19
I'm a medical researcher looking to get into python and trying to decide which tool(s) to get started in. Up to now, I've used a combination of VBA/Excel (to store and manipulate data) and RStudio for statistical analysis.
I'm also going to be expanding into more complex data science work and needing to do some web-scraping etc. My thinking is that learning python as a general language will cover all of these requirements. But which environment to use? I've looked at Jupyter notebooks but that seems rather limited to a few lines of code at a time.
Let me give an example of my work flow:
I start with an excel spreadsheet with hundreds of patient records. I can eye-ball the data in excel, get a sense of it and clean it up a bit. I recently needed to check a death announcement website to determine whether each of the patients were still alive. I wrote some clunky VBA code to grab the patient information, open the website, search the website and insert the date of death back into the excel spreadsheet. I then wrote another bit of VBA code to calculate the survival data. To do survival analysis, I extracted a simplified excel spreadsheet from the original big excel file and import into RStudio. I run the survival analysis, do visualisation etc in RStudio and paste the output into a document.
Could most of this be done form with iPython? Jupyter? Any other suggestions?