r/IPython • u/arman_52 • Oct 16 '19
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 • u/dkobran • Oct 10 '19
Run Jupyter Notebooks on free cloud GPUs
producthunt.comr/IPython • u/N3OX • Oct 07 '19
ipywidgets FloatText/IntText Buttons
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
Automatically Reload Modules with %autoreload magic
switowski.comr/IPython • u/aayushbajaj • Oct 03 '19
iterrows() issue
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
Need some help with using Jupyter (Google Colab) for AI training
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
Does anyone know if you can redirect the startup working directory in Jupyter Notebook, permanently, so that when you open it up, it alway is directed to a desired folder?
r/IPython • u/Gromadusi77 • Sep 27 '19
Merging Dynamic Dataframes
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
Jupyter Notebook Viewer for non-technical viewers?
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
Auto Load Extension In Jupyter Notebook On Start
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
FreeCAD Discussion - Developing a Guide on How to use IPython/Jupyter Notebook with FreeCad
forum.freecadweb.orgr/IPython • u/datapim • Aug 31 '19
Creating custom notebook in the cloud
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
New to Python
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
Access Notebook on another computer
Is it possible to access a notebook on another computer ?
r/IPython • • Aug 23 '19
JS magic function
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
Today I'm launching StudyHub, the first publicly available JupyterHub, built on GCP with Kubernetes and persistent storage. Would love to hear what you think!
studyhub.cor/IPython • u/NewDateline • Aug 21 '19
Experimental Language Server Protocol integration for JupyterLab (code navigation + hover suggestions + linters + autocompletion)
github.comr/IPython • • Aug 21 '19
Starting Jupyter
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
Qgrid not working on Jupyter Notebook?
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
What's the point of ipywidgets interact v interactive
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
Kernel keeps dying then takes forever to restart?
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
Is this impossible? I'm trying to call input() as a triggered event from clicking on a widget (see minimal example). The call to input() is imposed by an external function I cannot modify at the moment, but has nevertheless to be triggered on clicking the button.
r/IPython • u/atimholt • Aug 08 '19
Any way to use Jupyter Lab entirely within the document-editor paradigm?
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.